diff options
author | Doug Evans <dje@google.com> | 2014-12-04 12:01:22 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-12-04 12:01:22 -0800 |
commit | 86e4ed39595933e04a9dcbc7dec18c1056c9cbe1 (patch) | |
tree | 35be0a27159e91369849f0f9a31aa2212b60b948 /gdb/doc/python.texi | |
parent | 7c50a93137df660f7b2d9d68c0db748a9cb7868f (diff) | |
download | gdb-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/python.texi')
-rw-r--r-- | gdb/doc/python.texi | 11 |
1 files changed, 11 insertions, 0 deletions
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. |