aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-05-15 18:46:25 +0000
committerDoug Evans <dje@google.com>2011-05-15 18:46:25 +0000
commit75fc9810e329b582cff578f08574432c90442fea (patch)
tree666ba8478f2d7c0782a12a6ab4f2b6c3c6791993 /gdb/doc
parent80db650d1d8506700e9a0c7ba58f5194f1009d9e (diff)
downloadgdb-75fc9810e329b582cff578f08574432c90442fea.zip
gdb-75fc9810e329b582cff578f08574432c90442fea.tar.gz
gdb-75fc9810e329b582cff578f08574432c90442fea.tar.bz2
* python/py-autoload.c (print_script): Print "Missing" instead of
"No" for missing scripts. (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing". doc/ * gdb.texinfo (Auto-loading): Document printing of missing scripts.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo19
2 files changed, 19 insertions, 4 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index f145574..bbb855d 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-15 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Auto-loading): Document printing of missing scripts.
+
2011-05-13 Doug Evans <dje@google.com>
* gdb.texinfo (Threads): Document $sdir,$pdir.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 08ee158..7fe6aac 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -23601,14 +23601,25 @@ Show whether auto-loading of Python scripts is enabled or disabled.
@kindex info auto-load-scripts
@cindex print list of auto-loaded scripts
@item info auto-load-scripts [@var{regexp}]
-Print the list of all scripts that gdb auto-loaded, or tried to auto-load.
+Print the list of all scripts that @value{GDBN} auto-loaded.
+
+Also printed is the list of scripts that were mentioned in
+the @code{.debug_gdb_scripts} section and were not found
+(@pxref{.debug_gdb_scripts section}).
+This is useful because their names are not printed when @value{GDBN}
+tries to load them and fails. There may be many of them, and printing
+an error message for each one is problematic.
+
If @var{regexp} is supplied only scripts with matching names are printed.
+Example:
+
@smallexample
(gdb) info auto-load-scripts
-Loaded Script
- Yes py-section-script.py
- full name: /tmp/py-section-script.py
+Loaded Script
+Yes py-section-script.py
+ full name: /tmp/py-section-script.py
+Missing my-foo-pretty-printers.py
@end smallexample
@end table