aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-12-04 12:01:22 -0800
committerDoug Evans <dje@google.com>2014-12-04 12:01:22 -0800
commit86e4ed39595933e04a9dcbc7dec18c1056c9cbe1 (patch)
tree35be0a27159e91369849f0f9a31aa2212b60b948 /gdb/doc
parent7c50a93137df660f7b2d9d68c0db748a9cb7868f (diff)
downloadgdb-86e4ed39595933e04a9dcbc7dec18c1056c9cbe1.zip
gdb-86e4ed39595933e04a9dcbc7dec18c1056c9cbe1.tar.gz
gdb-86e4ed39595933e04a9dcbc7dec18c1056c9cbe1.tar.bz2
New python method gdb.Objfile.add_separate_debug_file.
gdb/ChangeLog: * NEWS: Mention gdb.Objfile.add_separate_debug_file. * python/py-objfile.c (objfpy_add_separate_debug_file): New function. (objfile_getset): Add "add_separate_debug_file". gdb/doc/ChangeLog: * python.texi (Objfiles In Python): Document Objfile.add_separate_debug_file. gdb/testsuite/ChangeLog: * gdb.python/py-objfile.exp: Add tests for objfile.add_separate_debug_file.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/python.texi11
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 7f36a31..09318aa 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,10 @@
2014-12-04 Doug Evans <dje@google.com>
+ * python.texi (Objfiles In Python): Document
+ Objfile.add_separate_debug_file.
+
+2014-12-04 Doug Evans <dje@google.com>
+
* python.texi (Objfiles In Python): Document Objfile.build_id.
2014-12-02 Nick Bull <nicholaspbull@gmail.com>
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index a951410..f2e4a6e 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3562,6 +3562,17 @@ longer. All other @code{gdb.Objfile} methods will throw an exception
if it is invalid at the time the method is called.
@end defun
+@defun Objfile.add_separate_debug_file (file)
+Add @var{file} to the list of files that @value{GDBN} will search for
+debug information for the objfile.
+This is useful when the debug info has been removed from the program
+and stored in a separate file. @value{GDBN} has built-in support for
+finding separate debug info files (@pxref{Separate Debug Files}), but if
+the file doesn't live in one of the standard places that @value{GDBN}
+searches then this function can be used to add a debug info file
+from a different place.
+@end defun
+
@node Frames In Python
@subsubsection Accessing inferior stack frames from Python.