[fpc-devel] Re: Debugger for FPC
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Mar 11 15:59:16 CET 2009
Michael Schnell wrote on wo, 11 mrt 2009:
>> To make FPC generate DWARF3 debug info, use the -gw3 command line
>> switch. Note that this is not yet very well tested, and may still
>> contain a lot of bugs (with things working with -g and/or -gw2 not
>> working with -gw3)
> But it seems the way FP goes is already defined and seems like appropriate.
The way I go is already defined (GDB + submitting GDB patches when
necessary + DWARF3).
That does not mean everyone in the FPC team agrees with me though
(well, I know for a fact that not everyone does :). However,
regardless of whether someone uses GDB or a new debugger, proper and
full DWARF3 support in the compiler is pretty much required by
definition.
> I suppose Lazarus needs an update, too, as it needs to support the
> upcoming features of the DWARF3 aware debugger.
In general, not that many changes to Lazarys should be required. Most
of the differences will be that previously wrong variable values will
become correct (e.g., dynamic arrays), or that unknown variables will
become known (e.g., absolute variables). Only if Lazarus contains some
workarounds for certain cases, then those workarounds may need to be
disabled.
Jonas
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the fpc-devel
mailing list