Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* New "info auxv" command and $auxv variable?
@ 2003-11-04 16:46 Andrew Cagney
  2003-11-04 16:55 ` Daniel Jacobowitz
  2003-11-05  6:12 ` Eli Zaretskii
  0 siblings, 2 replies; 8+ messages in thread
From: Andrew Cagney @ 2003-11-04 16:46 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-11-05  6:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-04 16:46 New "info auxv" command and $auxv variable? 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
2003-11-05  6:12 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox