Recent

Author Topic: GDB on OSX  (Read 7005 times)

duncanparsons

  • Jr. Member
  • **
  • Posts: 83
GDB on OSX
« on: March 24, 2010, 07:00:40 pm »
Hi

I'm running Laz 0.9.28.3 (r24092) and fpc 2.4.0 on OSX 10.4.11 (Intel)
I have gdb selected as the debugger, and on starting a debug get the message
'--arch option not supported in this gdb'

Here and there things work, but when they don't (which is often) I get total machine freeze needing a reboot.
Sometimes the freeze is when the first breakpoint is hit, a few times it's been on closing the application terminating the debug session.

GDB version id 6.3.50-20050815

any ideas? is this an FP/Laz thing or GDB?

thx, Duncan
« Last Edit: March 24, 2010, 07:03:58 pm by duncanparsons »

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: GDB on OSX
« Reply #1 on: March 24, 2010, 09:10:32 pm »
Here and there things work, but when they don't (which is often) I get total machine freeze needing a reboot.

any ideas? is this an FP/Laz thing or GDB?

A complete system freeze is almost by definition an OS issue. Regardless of what Lazarus or GDB does, the system should not freeze. It is of course possible that this situation may be avoided in some ways, but that will require someone with a system on which this problem occurs to figure out the cause somehow.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2649
Re: GDB on OSX
« Reply #2 on: March 24, 2010, 11:23:54 pm »
I only know of these cases when debugging on linux - X.
If you are debugging in the same X session as your app and you have a breakpoint inside a X event (say mousedown), then X freezes.
I never saw this happen on OSX 10.4
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018