[fpc-devel] more question on -g commandline switches / -gv valgind
Martin
lazarus at mfriebe.de
Sun Sep 18 14:34:22 CEST 2011
Trying to improve the lazarus user-interface for selecting what debug
info to generate, I try to understand the relations between settings.
(as for example, indicating to the user, that -gl causes the same debug
info than -g does)
Valgrind requires debug info too so -g-v is nonsnes.. It also understand
stabs and dwarf, according to it's docs
The question is what does fpc do, if -gv is specified.
Does -gv :
- force either stabs or dwarf
- work with both, and add extend info (never mind if stabs or dwarf)
- observe stabs or dwarf setting (-gs / -gw) but only add info for one
of the 2 formats?
In other words, does it make sense in Lazarus, to allow the user to
choose explicit stab or dwarf; and then on top of that optionally add
-gv ? Will it work as expected in any combination?
Or should lazarus, only allow stabs, or only dwarf, if the user gives -gv.
Or should Lazarus prevent the user from chosing stabs/dwarf at all, if
-gv is selected? so it simply gives -g -gv (or just -gv) to fpc, but
NOT -gs / -gw ?
More information about the fpc-devel
mailing list