aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2009-12-21 10:02:06 +0000
committerVladimir Prus <vladimir@codesourcery.com>2009-12-21 10:02:06 +0000
commita6b29f87728ddb9bd63ef54383fd540005c7b412 (patch)
treec656f2eb49f8a67d7adeeeb7844ca77a4f59a328 /gdb/doc
parent9e19b45e2ed724759be1034349274f006d5a8653 (diff)
downloadgdb-a6b29f87728ddb9bd63ef54383fd540005c7b412.zip
gdb-a6b29f87728ddb9bd63ef54383fd540005c7b412.tar.gz
gdb-a6b29f87728ddb9bd63ef54383fd540005c7b412.tar.bz2
* mi/mi-main.c (mi_cmd_gdb_exit): Flush raw_stdout.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo7
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index e1e019fc..aa6ab58 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-21 Vladimir Prus <vladimir@codesourcery.com>
+
+ * gdb.texinfo (GDB/MI Miscellaneous Commands): Clarify that
+ -gdb-exit behaviour.
+
2009-12-20 Joel Brobecker <brobecker@adacore.com>
* gpl.texi: Update to version 3 of the GPL.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index e880838..40bbe07 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21955,6 +21955,13 @@ Quitting @value{GDBN} just prints the result class @samp{^exit}.
<- ^exit
@end smallexample
+Please note that @samp{^exit} is printed immediately, but it might
+take some time for @value{GDBN} to actually exit. During that time, @value{GDBN}
+performs necessary cleanups, including killing programs being debugged
+or disconnecting from debug hardware, so the frontend should wait till
+@value{GDBN} exits and should only forcibly kill @value{GDBN} if it
+fails to exit in reasonable time.
+
@subheading A Bad Command
Here's what happens if you pass a non-existent command: