diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 18d903900f2..cf3748936e8 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-08 Andrew Burgess + + * gdb.texinfo (Selection): Update documentation for 'frame' + command. + 2015-07-02 Markus Metzger * gdb.texinfo (Maintenance Commands): Document "maint btrace" diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 842711a2816..44770488942 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -7320,22 +7320,14 @@ Select frame number @var{n}. Recall that frame zero is the innermost innermost one, and so on. The highest-numbered frame is the one for @code{main}. -@item frame @var{addr} -@itemx f @var{addr} -Select the frame at address @var{addr}. This is useful mainly if the +@item frame @var{stack-addr} [ @var{pc-addr} ] +@itemx f @var{stack-addr} [ @var{pc-addr} ] +Select the frame at address @var{stack-addr}. This is useful mainly if the chaining of stack frames has been damaged by a bug, making it impossible for @value{GDBN} to assign numbers properly to all frames. In addition, this can be useful when your program has multiple stacks and -switches between them. - -On the SPARC architecture, @code{frame} needs two addresses to -select an arbitrary frame: a frame pointer and a stack pointer. - -On the @acronym{MIPS} and Alpha architecture, it needs two addresses: a stack -pointer and a program counter. - -On the 29k architecture, it needs three addresses: a register stack -pointer, a program counter, and a memory stack pointer. +switches between them. The optional @var{pc-addr} can also be given to +specify the value of PC for the stack frame. @kindex up @item up @var{n}