[fpc-pascal] DWARF line info cannot be used gdb
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Dec 28 19:01:45 CET 2008
On 28 Dec 2008, at 17:22, dmitry boyarintsev wrote:
> all these command lines did not work
> fpc -Xe -gw2 test.pas
> fpc -Aas -gw2 test.pas
> fpc -Xe -Aas -gw2 test.pas
>
> in all three cases gdb returnes "invalid dwarf2 offset "
Did you try with adding tf_dwarf_relative_addresses to the win32
target flags? The binutils for Linux do not follow the dwarf standard
(expecting absolute addresses in some places where the dwarf standard
says that you should use relative offsets), but since Linux support
was implemented first that's also the default in FPC.
Putting absolute addresses in places where relative offsets are
expected certainly will result in invalid offsets.
Jonas
More information about the fpc-pascal
mailing list