aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-12-04 11:32:24 -0800
committerDoug Evans <dje@google.com>2014-12-04 11:32:24 -0800
commit7c50a93137df660f7b2d9d68c0db748a9cb7868f (patch)
treeb47c96bea08c023b78798039c98e18c9dafbd632 /gdb/doc
parentfbad6518c1397939ea2d832eea7e53f2147759a8 (diff)
downloadgdb-7c50a93137df660f7b2d9d68c0db748a9cb7868f.zip
gdb-7c50a93137df660f7b2d9d68c0db748a9cb7868f.tar.gz
gdb-7c50a93137df660f7b2d9d68c0db748a9cb7868f.tar.bz2
New python attribute gdb.Objfile.build_id.
gdb/ChangeLog: * NEWS: Mention gdb.Objfile.build_id. * build-id.c (build_id_bfd_get): Make non-static. * build-id.h (build_id_bfd_get): Add declaration. * python/py-objfile.c: #include "build-id.h", "elf-bfd.h". (OBJFPY_REQUIRE_VALID): New macro. (objfpy_get_build_id): New function. (objfile_getset): Add "build_id". * utils.c (make_hex_string): New function. * utils.h (make_hex_string): Add declaration. gdb/doc/ChangeLog: * python.texi (Objfiles In Python): Document Objfile.build_id. gdb/testsuite/ChangeLog: * lib/gdb.exp (get_build_id): New function. (build_id_debug_filename_get): Rewrite to use it. * gdb.python/py-objfile.exp: Add test for objfile.build_id.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/python.texi11
2 files changed, 15 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 08b49f5..7f36a31 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+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>
* python.texi (Events In Python): Document new events
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 63db2b2..a951410 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3495,6 +3495,17 @@ class.
The file name of the objfile as a string.
@end defvar
+@defvar Objfile.build_id
+The build ID of the objfile as a string.
+If the objfile does not have a build ID then the value is @code{None}.
+
+This is supported only on some operating systems, notably those which use
+the ELF format for binary files and the @sc{gnu} Binutils. For more details
+about this feature, see the description of the @option{--build-id}
+command-line option in @ref{Options, , Command Line Options, ld.info,
+The GNU Linker}.
+@end defvar
+
@defvar Objfile.progspace
The containing program space of the objfile as a @code{gdb.Progspace}
object. @xref{Progspaces In Python}.