Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

OSX 10.6 and GDB crashing

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

Lazarus : Today's Trunk
FPC: Today's Trunk
Operating System: OSX 10.6 darwin

[Debugger] Running GDB version: 6.3.50-20050815 (Apple version gdb-1469) [TDebugger.SetFileName] "/Developer/Source/Builds/SCS/Apple/32/Console.app" [TMainIDE.DoRunProject] B TGDBMIDebugger
[TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging
WorkingDir="/Developer/Source/Builds/SCS/Apple/32/" TGDBMIDebugger.ProcessResult Error: ,msg="No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context." [Debugger] Log output: &"info functions FPC_CPUINIT\n" [Debugger] Log output: &"set width 50000\n"
[Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"ptype TObject\n"
[Debugger] Log output: &"info address FPC_RAISEEXCEPTION\n" [Debugger] Log output: &"info address FPC_BREAK_ERROR\n" [Debugger] Log output: &"info address FPC_RUNERROR\n" [Debugger] Log output: &"info file\n"
[Debugger] File type: mach-o-le
[Debugger] Entry point: 0x00010c70
[WARNING] Debugger: Unexpected async-record: =shlibs-updated [Debugger] Target PID: 38192
TGDBMIDebugger.ProcessResult Error: ,msg="Invalid cast." TCarbonWidgetSet.AppBringToFront Error: SetFrontProcess failed with result -606 [Debugger] Log output: &"x/s ^Exception($rdi)^.FMessage\n"

Anyone have similar problems running their projects? I am using CThreads as the first unit in this project.

Reply by email

Alexander Klenin
to Andrew Brunner
Andrew Brunner wrote 5 lines
Lazarus : Today's Trunk FPC: Today's Trunk Operating System: OSX 10.6 darwin Anyone have similar problems running their projects? ?I am using CThreads as the first unit in this project.

I tried using Lazarus on OSX a few weeks ago, and the debugger constantly crashed for me too, although in my case it was more like this: http://forum.lazarus.freepascal.org/index.php/topic,8991.0.html

Alexander S. Klenin

Reply by email

Andrew Brunner
to Andrew Brunner: Lazarus : Today's Trunk FPC: Today's Trunk Operating System: OSX 10.6 darwin [Debugger]…
Andrew Brunner wrote
TGDBMIDebugger.ProcessResult Error: ,msg="Invalid cast." TCarbonWidgetSet.AppBringToFront Error: SetFrontProcess ?failed with result -606 [Debugger] Log output: &"x/s ^Exception($rdi)^.FMessage\n"

Ok, I launched the app directly in the Project.app../Project from a terminal and that was able to report that a file I use for logging was not able to be opened for read/write (TFileStream). It was an exception raised on TFileStream.Create but GDB under Darwin could not pass that exception to me.

It wasn't a problem with Lazarus/FPC but rather with GDB under Darwin. It is advisable that ppl with GDB problems under Lazarus execute their apps from the prompt to get more specific debugging info during crashing. At least it helped for me.

But at least my app runs now.

Reply by email