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 ?



_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to