Impossible debugging on AMD64 linux
Original Reporter info from Mantis: nvitya@freemail.hu
-
Reporter name: Viktor Nagy
Original Reporter info from Mantis: nvitya@freemail.hu
- Reporter name: Viktor Nagy
Description:
On AMD64 linux something wrong with the debugging info. You cannot examine the stack local variables.
With FPC2.1.1 there is no problem. I would very appreciate if this fix is merged in the production version.
Additional information:
procedure MainProc;
var
x : integer;
begin
x := 5;
writeln('x=',x);
end;
begin
MainProc;
end.
------------------------
(gdb) break MAINPROC
Breakpoint 1 at 0x4001a4: file dbgtest2.pas, line 5.
(gdb) run
Starting program: /work/dbgtest64/dbgtest2
Breakpoint 1, MAINPROC () at dbgtest2.pas:5
5 x := 5;
(gdb) step
6 writeln('x=',x);
(gdb) print X
Cannot access memory at address 0x80003877108c
(gdb)
Mantis conversion info:
- Mantis ID: 8215