(1) fix macro invocation of _GDBN__ that didn't expand due to adjacent 's';
(2) attempt better text for when register relativization makes no diff.
This commit is contained in:
parent
5e4fd5d583
commit
8922ff76e3
1 changed files with 6 additions and 7 deletions
|
@ -3432,17 +3432,16 @@ cases, _GDBN__ normally works with the virtual format only (the format that
|
||||||
makes sense for your program), but the @samp{info registers} command
|
makes sense for your program), but the @samp{info registers} command
|
||||||
prints the data in both formats.
|
prints the data in both formats.
|
||||||
|
|
||||||
Register values are relative to the selected stack frame
|
Normally, register values are relative to the selected stack frame
|
||||||
(@pxref{Selection}). This means that you get the value that the register
|
(@pxref{Selection}). This means that you get the value that the register
|
||||||
would contain if all stack frames farther in were exited and their saved
|
would contain if all stack frames farther in were exited and their saved
|
||||||
registers restored. In order to see the contents of hardware registers,
|
registers restored. In order to see the contents of hardware registers,
|
||||||
you must select the innermost frame (with @samp{frame 0}).
|
you must select the innermost frame (with @samp{frame 0}).
|
||||||
|
|
||||||
Some registers are never saved (typically those numbered zero or one)
|
However, _GDBN__ must deduce where registers are saved, from the machine
|
||||||
because they are used for returning function values. In some operating
|
code generated by your compiler. If some registers are not saved, or if
|
||||||
systems (those using the ``caller saves'' convention), there are other
|
_GDBN__ is unable to locate the saved registers, the selected stack
|
||||||
registers intended for free alteration by a called routine. For these
|
frame will make no difference.
|
||||||
registers, relativization makes no difference.
|
|
||||||
|
|
||||||
@table @code
|
@table @code
|
||||||
@item info registers
|
@item info registers
|
||||||
|
@ -4183,7 +4182,7 @@ _GDBN__ indicates its readiness to read a command by printing a string
|
||||||
called the @dfn{prompt}. This string is normally @samp{(_GDBP__)}. You can
|
called the @dfn{prompt}. This string is normally @samp{(_GDBP__)}. You can
|
||||||
change the prompt string with the @samp{set prompt} command. For
|
change the prompt string with the @samp{set prompt} command. For
|
||||||
instance, when debugging _GDBN__ with _GDBN__, it is useful to change the prompt
|
instance, when debugging _GDBN__ with _GDBN__, it is useful to change the prompt
|
||||||
in one of the _GDBN__s so that you tell which one you are talking to.
|
in one of the _GDBN__<>s so that you tell which one you are talking to.
|
||||||
|
|
||||||
@table @code
|
@table @code
|
||||||
@item set prompt @var{newprompt}
|
@item set prompt @var{newprompt}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue