Hi,
I want to debug my pascal program with gdb. I can't examine my variables when I run my program in the debugger. Nevertheless, I compile with gcc -gstabs foo.pas and I got that :
Line number 0 is out of range for "<implicit code>". list foo.pas:1 (xxgdb) p d $1 = 42 (xxgdb) break 5 Breakpoint 1 at $120002948: file foo.pas, line 5. (xxgdb) run
Breakpoint 1, pascal_main_program () at foo.pas:5 (xxgdb) p d $2 = { i = {0, 1076887552}, d = 16 }
How to get value at all the time???? Thanks
Mehdi Khaldi wrote:
I want to debug my pascal program with gdb. I can't examine my variables when I run my program in the debugger. Nevertheless, I compile with gcc -gstabs foo.pas and I got that :
Line number 0 is out of range for "<implicit code>". list foo.pas:1 (xxgdb) p d $1 = 42 (xxgdb) break 5 Breakpoint 1 at $120002948: file foo.pas, line 5. (xxgdb) run
Breakpoint 1, pascal_main_program () at foo.pas:5 (xxgdb) p d $2 = { i = {0, 1076887552}, d = 16 }
How to get value at all the time????
Sorry, but like so often, your request is quite unclear. PLEASE, try to give some information with your requests! Like, the Pascal source, and what you expected to get etc. ...
Anyway, try writing `D' in upper-case.
Frank