aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2009-03-17 05:14:01 +0000
committerHui Zhu <teawater@gmail.com>2009-03-17 05:14:01 +0000
commit91440f573c841b2ce931d69d5313067fcf427df5 (patch)
tree950a6dd0bedb57182dbc63f7e75e279ae6bbb3f9 /gdb/doc
parent30c33a9f4b1132803f7f30fab64ad6b9da075d39 (diff)
downloadgdb-91440f573c841b2ce931d69d5313067fcf427df5.zip
gdb-91440f573c841b2ce931d69d5313067fcf427df5.tar.gz
gdb-91440f573c841b2ce931d69d5313067fcf427df5.tar.bz2
* gdb.texinfo: Add documentation for disassemble-next-line.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo17
2 files changed, 20 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 87ae44a..35d70fb 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-17 Hui Zhu <teawater@gmail.com>
+
+ * gdb.texinfo: Add documentation for disassemble-next-line.
+
2009-03-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.texinfo (Commands In Python): Remove tindex entries.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 78e1d02..b1381a2 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -5910,7 +5910,9 @@ directories in one command.
You can use the command @code{info line} to map source lines to program
addresses (and vice versa), and the command @code{disassemble} to display
-a range of addresses as machine instructions. When run under @sc{gnu} Emacs
+a range of addresses as machine instructions. You can use the command
+@code{set disassemble-next-line} to set whether to disassemble next
+source line when execution stops. When run under @sc{gnu} Emacs
mode, the @code{info line} command causes the arrow to point to the
line specified. Also, @code{info line} prints addresses in symbolic form as
well as hex.
@@ -6040,6 +6042,19 @@ assemblers for x86-based targets.
Show the current setting of the disassembly flavor.
@end table
+@table @code
+@kindex set disassemble-next-line
+@kindex show disassemble-next-line
+@item set disassemble-next-line
+@itemx show disassemble-next-line
+Control whether or not @value{GDBN} will disassemble next source line
+when execution stops. If ON, GDB will display disassembly of the next
+source line when execution of the program being debugged stops.
+If AUTO (which is the default) or the next source line cannot be
+ascertained, display disassembly of the next instruction
+instead.
+@end table
+
@node Data
@chapter Examining Data