This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2222: Impossible to debug FreePascal programs on AMD64 Linux
- From: viktor dot nagy at abmm dot hu
- To: gdb-gnats at sources dot redhat dot com
- Date: 26 Jan 2007 08:54:04 -0000
- Subject: gdb/2222: Impossible to debug FreePascal programs on AMD64 Linux
- Reply-to: viktor dot nagy at abmm dot hu
>Number: 2222
>Category: gdb
>Synopsis: Impossible to debug FreePascal programs on AMD64 Linux
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Jan 26 08:58:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: viktor.nagy@abmm.hu
>Release: 6.5
>Organization:
>Environment:
GNU Linux, debian, AMD64
>Description:
With FreePascal 2.0.4 you cannot examine the stack local variables.
The FreePascal developers say this is a gdb bug:
http://www.freepascal.org/mantis/view.php?id=8215
This might be the same as problem 1967.
>How-To-Repeat:
dbgtest2.pas:
------------------------------
procedure MainProc;
var
x : integer;
begin
x := 5;
writeln('x=',x);
end;
begin
MainProc;
end.
------------------------
# fpc dbgtest2.pas
# gdb dbgtest2
...
(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)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: