diff options
author | Doug Evans <dje@google.com> | 2014-12-04 11:32:24 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-12-04 11:32:24 -0800 |
commit | 7c50a93137df660f7b2d9d68c0db748a9cb7868f (patch) | |
tree | b47c96bea08c023b78798039c98e18c9dafbd632 /gdb/build-id.c | |
parent | fbad6518c1397939ea2d832eea7e53f2147759a8 (diff) | |
download | gdb-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/build-id.c')
-rw-r--r-- | gdb/build-id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/build-id.c b/gdb/build-id.c index 0f553ce..5c1f415 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -27,9 +27,9 @@ #include "objfiles.h" #include "filenames.h" -/* Locate NT_GNU_BUILD_ID from ABFD and return its content. */ +/* See build-id.h. */ -static const struct elf_build_id * +const struct elf_build_id * build_id_bfd_get (bfd *abfd) { if (!bfd_check_format (abfd, bfd_object) |