Debugger Problem lazarus / 12-Debugger ---------------------------------------------------------------------- IndianaJones · 2008-03-22 21:22 Hi, When i activate the debugger option on OS X, i get this error message. Debugger Error Ooops, the debugger entered the error state Save your work now ! Hit Stop, and hope the best, we're pulling the plug. Thanks. ---------------------------------------------------------------------- Phil · 2008-03-22 21:30 Quote from: "IndianaJones"Hi, When i activate the debugger option on OS X, i get this error message. Debugger Error Ooops, the debugger entered the error state Save your work now ! Hit Stop, and hope the best, we're pulling the plug. Thanks. Does the debugger work from the command line? For example: gdb project1.app Thanks. -Phil ---------------------------------------------------------------------- IndianaJones · 2008-03-22 21:39 Yep it is running, The output something below, macosx:Example macintoshmacbook$ gdb project1.app/ GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49 UTC 2007) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB.  Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ....... done warning: Bad symbol - type is N_SECT but section is 0 (gdb) list 1   program project1; 2    3   {$mode objfpc}{$H+} 4    5   uses 6     {$IFDEF UNIX}{$IFDEF UseCThreads} 7     cthreads, 8     {$ENDIF}{$ENDIF} 9     Interfaces, // this includes the LCL widgetset 10     Forms ---------------------------------------------------------------------- Phil · 2008-03-22 22:00 Quote from: "IndianaJones"Yep it is running, The output something below, macosx:Example macintoshmacbook$ gdb project1.app/ GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49 UTC 2007) warning: Bad symbol - type is N_SECT but section is 0 You have a newer build of the debugger than I do, possibly because you're running Intel and/or Leopard, where I'm running PowerPC and Tiger. Here's my version: GNU gdb 6.3.50-20050815 (Apple version gdb-573) (Fri Oct 20 15:54:33 GMT 2006) I'm not familiar with that warning. Did you enter "run"? Thanks. -Phil ---------------------------------------------------------------------- IndianaJones · 2008-03-22 22:48 Strange now it is okey, give no warning. macosx:Example macintoshmacbook$ gdb project1.app/ GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49 UTC 2007) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB.  Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ....... done (gdb) (gdb) run Starting program: /Users/macintoshmacbook/Documents/Pascal Sources/Example/project1.app/Contents/MacOS/project1 Reading symbols for shared libraries ++++++........................... .............................................. done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done TCarbonWidget.Create TCarbonWindow Form1: TForm1 TCarbonWindow.RegisterEvents TCarbonWindow Form1: TForm1 CarbonCommon_BoundsChanged Form1:TForm1 CarbonCommon_BoundsChanged Form1:TForm1 TCarbonWidget.Create TCarbonButton Button1: TButton TCarbonWidget.Create TCarbonButton Button2: TButton TCarbonWindow.SetScrollInfo TODO TCarbonWindow.SetScrollInfo TODO Reading symbols for shared libraries . done Reading symbols for shared libraries ....... done CarbonWindow_ActivateProc Form1:TForm1 TCarbonWidget.Destroy TCarbonButton Button1: TButton TCarbonWidget.Destroy TCarbonButton Button2: TButton TCarbonWidget.Destroy TCarbonWindow Form1: TForm1 Program exited normally. ---------------------------------------------------------------------- Almindor · 2008-03-23 10:49 They probably changed something again in gdb, either get a fresh version from gnu (not sure if it'll work seeing as apple modified it), older from OSx or use from commandline. Bugrep would be welcome for future possible fixes of course. ---------------------------------------------------------------------- IndianaJones · 2008-03-23 14:22 Get the warning again. macosx:RGBGraphics macintoshmacbook$ gdb project1.app/ GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49 UTC 2007) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB.  Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ....... done warning: Bad symbol - type is N_SECT but section is 0 (gdb) run Starting program: /Users/macintoshmacbook/Documents/Pascal Sources/RGBGraphics/project1.app/Contents/MacOS/project1 Reading symbols for shared libraries ++++++........................... .............................................. done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done TCarbonWidget.Create TCarbonWindow Form1: TForm1 TCarbonWindow.RegisterEvents TCarbonWindow Form1: TForm1 CarbonCommon_BoundsChanged Form1:TForm1 CarbonCommon_BoundsChanged Form1:TForm1 TCarbonWidget.Create TCarbonButton Button1: TButton TCarbonWindow.SetScrollInfo TODO TCarbonWindow.SetScrollInfo TODO Reading symbols for shared libraries . done Reading symbols for shared libraries ....... done CarbonWindow_ActivateProc Form1:TForm1 CarbonWindow_Close: Form1:TForm1 TCarbonWidget.Destroy TCarbonButton Button1: TButton TCarbonWidget.Destroy TCarbonWindow Form1: TForm1 Program exited normally.