DWARF 2 debug line info is incorrect for Win32 (cannot be handled by gdb v6.7.50)
Original Reporter info from Mantis: skalogryyz
-
Reporter name: Dmitry Boyarintsev
Original Reporter info from Mantis: skalogryyz
- Reporter name: Dmitry Boyarintsev
Description:
i'm trying to use gdb to debug FPC compiled file with DWARF debug information.
fpc -gw2 test.pas
gdb test.exe
here's test.pas listing
---codestart--
procedure TestUp;
begin
writeln(5);
end;
begin
Testup;
writeln('hello world');
end.
---codeend--
when i'm trying to setup a breakpoint, the breakpoint is set at
the proper place, but gives two identical warnings:
warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.)
If code is modified, just by adding a parameter to Testup function,
gdb can no longer set a breakpoint
---codestart--
procedure TestUp(i: integer);
begin
writeln(i);
end;
begin
Testup(5);
writeln('hello world');
end.
---codeend--
(gdb) b test.pas:7
invalid dwarf2 offset 4247672
Mantis conversion info:
- Mantis ID: 12872
- Fixed in version: 2.4.0
- Fixed in revision: 12592 (#0768f827)