public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Specify frame by address
@ 2011-10-29 17:47 Eli Zaretskii
  2011-10-29 18:03 ` Jan Kratochvil
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Eli Zaretskii @ 2011-10-29 17:47 UTC (permalink / raw)
  To: gdb

Both the doc string of the "frame" command and the manual say that it
accepts frame specification by address:

  (gdb) help frame
  Select and print a stack frame.
  With no argument, print the selected stack frame.  (See also "info frame").
  An argument specifies the frame to select.
  It can be a stack frame number or the address of the frame.  <<<<<<<<<<
  With argument, nothing is printed if input is coming from
  a command file or a user-defined command.

But what is "the address of the frame"?  I thought that using an
address of a function (the one shown by "info address") or some
address shown by the "backtrace" command would do, but none of them
seems to work.

What am I missing?

The context of this is that I would like to write a command that
automatically goes to a frame within a call to a specific function,
because that command needs to access variables local to that function.

TIA

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

end of thread, other threads:[~2011-11-02  9:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-29 17:47 Specify frame by address Eli Zaretskii
2011-10-29 18:03 ` Jan Kratochvil
2011-10-29 18:04   ` Eli Zaretskii
2011-10-29 18:48     ` Mark Kettenis
2011-10-29 20:46       ` Jan Kratochvil
2011-10-30 13:21         ` Mark Kettenis
2011-11-02  9:14           ` Yao Qi
2011-10-30  6:39       ` Eli Zaretskii
2011-10-29 18:43 ` Andreas Schwab
2011-10-29 20:49   ` Eli Zaretskii
2011-11-01 18:58 ` Tom Tromey
2011-11-01 19:23   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).