I even had to revert a patch inside GDB about this issue, see: http://sourceware.org/ml/gdb-patches/2010-11/msg00084.html after my accepted patch: http://sourceware.org/ml/gdb-patches/2010-05/msg00258.html
It seems that DW_AT_variable_parameter is an informational attribute only, and as such should only be used for display, but the fact that it is a parameter that is passed by reference should still be mentioned. If we issue both, then we should probably, inside the pascal expression reader, hide the reference, so that the output is the same as for stabs. Pierre Muller as pascal language maintainer of GDB. > -----Message d'origine----- > De : [email protected] [mailto:fpc-devel- > [email protected]] De la part de Jonas Maebe > Envoyé : jeudi 9 décembre 2010 17:59 > À : FPC developers' list > Objet : Re: [fpc-devel] difference between stabs and dwarf for "var > param" > > > On 09 Dec 2010, at 17:40, Martin wrote: > > > I understand that a var param is passed by ref (internally), but if > Stabs can tell the debugger, to hide this, then shouldn't dwarf be able > to do that too? > > Or is dwarf showing the internal pointer intentionally? > > GDB does not yet support the concept of "var" parameters in DWARF, so > we currently encode them as C++-style reference parameters. > > > Jonas_______________________________________________ > fpc-devel maillist - [email protected] > http://lists.freepascal.org/mailman/listinfo/fpc-devel _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
