[fpc-devel] parentfp changed to $parentfp
Pierre Free Pascal
pierre at freepascal.org
Thu Dec 9 00:58:49 CET 2010
I added this pseudo-name a looong time ago
(lowercased as opposed to all uppercased
regular variables, at least at the start of
Free Pascal debugging capabilities...)
Its main purpose is to allow
the Text mode IDE (but I assume that this is also
true for Lazarus) to find the variables
of an outer function/procedure
when the debugger is in an internal (function local) frame.
So, in a given sense, it is a non-programmer
visible symbol, but to add a dollar in front of it
might lead to problems within GDB as GDB uses
the dollar sign for its own internal variables
i.e. history or user defined variables
or special variables like
$_exitcode
$_siginfo for signal information on Unix-like OS's
or $_tlb for thead local base on windows OS's
Thus, adding a dollar sign in front seems like a bad idea to me.
Pierre Muller
> -----Message d'origine-----
> De : fpc-devel-bounces at lists.freepascal.org [mailto:fpc-devel-
> bounces at lists.freepascal.org] De la part de Marc Weustink
> Envoyé : jeudi 9 décembre 2010 00:41
> À : FPC developers' list
> Objet : Re: [fpc-devel] parentfp changed to $parentfp
>
> On 8-12-2010 22:53, Jonas Maebe wrote:
> >
> > On 08 Dec 2010, at 22:32, Martin wrote:
> >
> >> It seems that the name of "parentfp" (used by neted procedures)
> depends on the dwarf version?
> >>
> >> -gs and -gw => parentfp
> >> -gw3 => $parentfp
> >>
> >> Is there are reason, does the $ have a meaning?
> >
> > It's a bug in -gw3. "$" is an internal compiler convention for "non-
> programmer visible symbol".
>
> isn't parentfp a "non-programmer visible symbol" ?
>
> Marc
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list