diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/solib-spu.c | 3 | ||||
-rw-r--r-- | gdb/spu-linux-nat.c | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 39fcac7..9ad5000 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-09-18 Alan Modra <amodra@gmail.com> + + * solib-spu.c (spu_bfd_open): Use bfd_set_filename. + * spu-linux-nat.c (spu_bfd_open): Likewise. + 2019-09-18 Christian Biesinger <cbiesinger@google.com> * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c index 5b97b9b..c5e0aca 100644 --- a/gdb/solib-spu.c +++ b/gdb/solib-spu.c @@ -377,8 +377,7 @@ spu_bfd_open (const char *pathname) strcat (buf, original_name); - xfree ((char *)abfd->filename); - abfd->filename = xstrdup (buf); + bfd_set_filename (abfd.get (), xstrdup (buf)); } } diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c index 2f4b4d6..9dbb633 100644 --- a/gdb/spu-linux-nat.c +++ b/gdb/spu-linux-nat.c @@ -371,8 +371,7 @@ spu_bfd_open (ULONGEST addr) sect_size - 20); buf[sect_size - 20] = '\0'; - xfree ((char *)nbfd->filename); - nbfd->filename = xstrdup (buf); + bfd_set_filename (nbfd.get (), xstrdup (buf)); } } |