[Lazarus] Default debug mode and internal debugger

Martin Frb lazarus at mfriebe.de
Sun Dec 7 21:25:50 CET 2014


On 07/12/2014 16:38, Mattias Gaertner wrote:
> On Sat, 06 Dec 2014 21:16:47 +0000
> Martin Frb <lazarus at mfriebe.de> wrote:
>
>> [...]
>> It would also be good if packages could be set, to follow the
>> dwarf/stabs selection of the project. (though that means more
>> re-compiling).
>> (I suspect some gdb deal badly with mixed info.)
> We can add a checkbox to package debugger options 'Use Project
> settings'.
> What options should then be disabled?
>
Well at first I thought that simply the choice of stabs/dwarf should 
follow.
Though of course it has nothing to follow, if the project has debug 
disabled, but the package has it on (that is possible)

We could make the main toggle "Generate debug info" to follow too. But 
that is not needed. It can always be on, generating ppu with info, and 
the project can use -Xs (strip).


Looking at it:
"-Xg" (external dbg info), that is a linker flag. That probably makes no 
sense in package options?
"-gh" afaik is also project only (the mem manager applies to the entire exe)

"-gl" makes some sense, as it adds some basic debug info (line info), 
not sure about the inclusion of the units (lineinfo, ...) that cerate 
the dump, are they project wide?
That is using -gl on a package, ifin is ont used in the project, will 
that work?





More information about the Lazarus mailing list