Sign in Join

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

Mailing lists / fpc-pascal / 2009-10

can not debug on macosx 10.4 ppc

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Henrik Genssen

Hi,

I am trying to debug an application on my old ppc mac running macosx 10.4.11 with lazarus from trunc. On debugging the app starts, but it does not accept breakpoints... The console-output is the following:

[TCmdLineDebugger] Debug PID: 14010
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded. Use the \"file\" command." [Debugger] Running GDB version: Apple version gdb-437 [TDebugger.SetFileName] ""
[TMainIDE.DoRunProject] B TGDBMIDebugger
TGDBMIDebugger.StartDebugging WorkingDir=""
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context." [Debugger] Log output: &"info functions FPC_CPUINIT\n" [Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"info file\n"
[Debugger] File type: mach-o-be
[Debugger] Entry point: $00002770
[WARNING] Debugger: Unexpected async-record: =shlibs-updated [Debugger] Target PID: 14014
[Debugger] Log output: &"No source file named unit1.pas.\n" TGDBMIDebugger.ProcessResult Error: ,msg="No source file named unit1.pas." TGDBMIDebugger.ProcessResult Error: ,msg="mi_cmd_symbol_list_lines: Unknown source file name."

Yes, I have a unit1.pas :-) although it is named Unit1.pas - but is macosx not case insensitive by default anyway? Is my gdb just too old?

regards

Hinnack

JoshyFun
to Henrik Genssen

Hello FPC-Pascal,

Saturday, October 24, 2009, 10:22:56 PM, you wrote:

HG> [TCmdLineDebugger] Debug PID: 14010
HG> TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is HG> loaded. Use the \"file\" command."
HG> [Debugger] Running GDB version: Apple version gdb-437 [...]
HG> Yes, I have a unit1.pas :-) although it is named Unit1.pas - HG> but is macosx not case insensitive by default anyway? HG> Is my gdb just too old?

This message seems showing that no debug information was found in the executable file:

TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded. Use the \"file\" command."

I'm not used to anything different than windows, but had you checked that you are writting GDB information ?

Best regards, JoshyFun
Henrik Genssen
to JoshyFun

Hi JoshyFun,

yes, I am writeing debug information. I tried:
-g
-Xg
and both with no success

the output send earlier was made using both options.

-- Hinnack

Show quoted text 16 lines
This message seems showing that no debug information was found in the executable file: TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded. Use the \"file\" command." I'm not used to anything different than windows, but had you checked that you are writting GDB information ? -- Best regards, JoshyFun _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe
to Henrik Genssen

On 25 Oct 2009, at 13:17, "Henrik Genssen" <

Show quoted text 15 lines
wrote: Hi JoshyFun, yes, I am writeing debug information. I tried: -g -Xg and both with no success the output send earlier was made using both options. > > > > >

-Xg can only work with DWARF on Mac OS X. Either use -gw -Xg or plain - g without -Xg.

Jonas

Henrik Genssen
to Jonas Maebe

Hi Jonas,

if I use plain -g I get:
[TCmdLineDebugger] Debug PID: 15860
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded. Use the \"file\" command." [Debugger] Running GDB version: Apple version gdb-437 [TDebugger.SetFileName] ""
[TMainIDE.DoRunProject] B TGDBMIDebugger
TGDBMIDebugger.StartDebugging WorkingDir=""
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context." [Debugger] Log output: &"info functions FPC_CPUINIT\n" [Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"info file\n"
[Debugger] File type: mach-o-be
[Debugger] Entry point: $000023b0
[WARNING] Debugger: Unexpected async-record: =shlibs-updated

and if I hit a button on my simple app, the app hangs and I do not get to the break-point of the button on-click event (and no more output on console)

-- Hinnack

Show quoted text 5 lines
-Xg can only work with DWARF on Mac OS X. Either use -gw -Xg or plain - g without -Xg. Jonas
Jonas Maebe
to Henrik Genssen
Henrik Genssen wrote
if I use plain -g I get: [TCmdLineDebugger] Debug PID: 15860 TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded. Use the \"file\" command."

Does the directory yourapp.dSYM still exist? (this is what gets generated when you use -Xg) If so, delete it.

Jonas