From: Andrew Cagney <ac131313@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb@sources.redhat.com
Subject: Re: New "info auxv" command and $auxv variable?
Date: Tue, 04 Nov 2003 20:39:00 -0000 [thread overview]
Message-ID: <3FA80E62.30805@redhat.com> (raw)
In-Reply-To: <20031104201728.GA10060@nevyn.them.org>
> Yep.
>>
>
>> >I think $entrypoint is more useful than $auxv. Should we have a
>> >reserved namespace for these things?
>
>>
>> Ah, that. Ref: Replace $fp with $frame / $gdbframe / $gdb.frame
>> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=327
>>
>> Never been a decision. $ variables are reserved for both builtins and
>> registers but the two overlap. Ok, here's something warped:
>>
>> $.auxv
>>
>> (i.e., "dollar dot auxv" so you know I didn't make a typo :-)
>
>
> Eek? I'd prefer $gdb.auxv or $_auxv.
There is always the chance that some architecture has a register called
"gdb". Don't laugh, there's already a "gdt" register that's too close
for comfort :-(
Looking at the doco:
> @cindex @code{$}
> @cindex @code{$$}
> @cindex history number
> The values printed are given @dfn{history numbers} by which you can
> refer to them. These are successive integers starting with one.
> @code{print} shows you the history number assigned to a value by
> printing @samp{$@var{num} = } before the value; here @var{num} is the
> history number.
>
> To refer to any previous value, use @samp{$} followed by the value's
> history number. The way @code{print} labels its output is designed to
> remind you of this. Just @code{$} refers to the most recent value in
> the history, and @code{$$} refers to the value before that.
> @code{$$@var{n}} refers to the @var{n}th value from the end; @code{$$2}
> is the value just prior to @code{$$}, @code{$$1} is equivalent to
> @code{$$}, and @code{$$0} is equivalent to @code{$}.
So "$.frame" won't work. (=== "$$0.frame" === "<history-value>.frame")
-> your safe :-)
So its' looking somewhat bleakly like $_frame :-)
Andrew
next prev parent reply other threads:[~2003-11-04 20:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-04 16:46 Andrew Cagney
2003-11-04 16:55 ` Daniel Jacobowitz
2003-11-04 19:59 ` Andrew Cagney
2003-11-04 20:02 ` Daniel Jacobowitz
2003-11-04 20:15 ` Andrew Cagney
2003-11-04 20:17 ` Daniel Jacobowitz
2003-11-04 20:39 ` Andrew Cagney [this message]
2003-11-05 6:12 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FA80E62.30805@redhat.com \
--to=ac131313@redhat.com \
--cc=drow@mvista.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox