diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/elfread.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f72353b..a0c7844 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-02-21 Alan Modra <amodra@gmail.com> + + * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes. + 2013-02-20 Siva Chandra Reddy <sivachandra@google.com> Add a new method 'disassemble' to gdb.Architecture class. diff --git a/gdb/elfread.c b/gdb/elfread.c index 85e408f..4520209 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -1081,11 +1081,10 @@ build_id_bfd_get (bfd *abfd) { if (!bfd_check_format (abfd, bfd_object) || bfd_get_flavour (abfd) != bfd_target_elf_flavour - || elf_tdata (abfd)->build_id == NULL - || elf_tdata (abfd)->build_id->u.i.size == 0) + || elf_tdata (abfd)->build_id == NULL) return NULL; - return &elf_tdata (abfd)->build_id->u.i; + return elf_tdata (abfd)->build_id; } /* Return if FILENAME has NT_GNU_BUILD_ID matching the CHECK value. */ |