This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: New "info auxv" command and $auxv variable?
On Tue, Nov 04, 2003 at 02:59:04PM -0500, Andrew Cagney wrote:
> >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?
> >
> >
> >I don't know if there's enough utility to bother doing this, though...
> >the only thing likely to be generally useful is the entry point (and
> >maybe the vsyscall address).
>
> If we start making the CLI more usable by making this stuff available
> people might start using it :-)
>
> Anyway, the MI stuff is almost free (the code is common). The $auxv
> variable is a bit tricky but still ok. Could just add $entrypoint?
Oops, I misread you. The MI command is definitely a good idea -
"-info-auxv", right?
I think $entrypoint is more useful than $auxv. Should we have a
reserved namespace for these things?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer