From: Andrew Cagney <ac131313@redhat.com>
To: gdb@sources.redhat.com
Subject: New "info auxv" command and $auxv variable?
Date: Tue, 04 Nov 2003 16:46:00 -0000 [thread overview]
Message-ID: <3FA7D7C8.50609@redhat.com> (raw)
Hello,
In implementing a mechanism to query values from the the target's AUXV
(/proc/$$/auxv) I decided I might as well add a generic command:
(gdb) info auxv
Entry point 0x1234
...
(gdb)
that listed the contents of the processes auxv table.
But why stop there? What about a builtin $auxv variable, a struct, vis:
(gdb) print $auxv
$1 = { entry = 0x1234, ... }
Oh, and I guess:
(gdb) interpreter mi --info-auxv
^ok,result={entry="0x1234",...}
Thoughts?
Andrew
PS: Can any one point me at an official GNU/Linux or, I guess *BSD,
distro that supports /proc/$$/auxv? So far I've only got Solaris :-/
PPS: The second one is actually tricky. It requires a type bound to the
lifetime of the inferior - it is only in querying the inferior that the
fields can be determined. An alternative would be to always create the
type and then shove it into a type system bcache - ensuring that only
one struct of that form exists.
next reply other threads:[~2003-11-04 16:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-04 16:46 Andrew Cagney [this message]
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
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=3FA7D7C8.50609@redhat.com \
--to=ac131313@redhat.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