binutils-gdb/gdb/doc
Simon Marchi 791fb3d7a5 Fix documentation about rot agent expression bytecode
The rot agent expression bytecode rotates the three items on the top of
the stack.  It is not clear which way the rotation is.  However, the
documentation currently shows this as the effect of the instructions:

   a b c => c b a

which doesn't make sense, since the value b doesn't move.  The two
valid possibilities I see are

  a b c => b c a
  a b c => c a b

depending on which way you rotate.

When looking at the gdbserver code, the top of the stack becomes the
third item, and the next-to-top item becomes the top.  So the second
form would be the right one, since in this notation the top of the stack
is the rightmost element:

  a b c => c a b

I adjusted the symbolic description and added a bit of text to make it
more obvious.

gdb/doc/ChangeLog:

	* agentexpr.texi (rot): Fix symbolic description, improve
	textual description.
2017-07-31 11:26:50 +02:00
..
.gitignore Update and add .gitignore's 2016-09-21 13:12:21 -04:00
ChangeLog Fix documentation about rot agent expression bytecode 2017-07-31 11:26:50 +02:00
Doxyfile-base.in update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
Doxyfile-gdb-api.in update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
Doxyfile-gdb-xref.in update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
Doxyfile-gdbserver.in update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
Makefile.in Introduce "gdb/configure.nat" (and delete "gdb/config/*/*.mh" files) 2017-05-06 10:09:35 -04:00
a4rc.sed
agentexpr.texi Fix documentation about rot agent expression bytecode 2017-07-31 11:26:50 +02:00
all-cfg.texi update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
annotate.texinfo update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
doxy-index.in update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
fdl.texi
filter-for-doxygen Add Doxygen support to GDB 2014-02-10 19:10:34 -08:00
filter-params.pl Add Doxygen support to GDB 2014-02-10 19:10:34 -08:00
gdb.texinfo Add "maint check xml-descriptions" to test builtin xml target descriptions 2017-07-26 14:55:31 +01:00
gpl.texi
guile.texi Fix PR gdb/21606: SYMBOL_FUNCTIONS_DOMAIN misspelled in documentation 2017-06-20 21:31:59 -04:00
lpsrc.sed
observer.texi update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
psrc.sed
python.texi Fix PR gdb/21606: SYMBOL_FUNCTIONS_DOMAIN misspelled in documentation 2017-06-20 21:31:59 -04:00
refcard.tex update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
stabs.texinfo update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
stack_frame.eps
stack_frame.pdf
stack_frame.png
stack_frame.svg
stack_frame.txt