diff options
Diffstat (limited to 'gdb/solib-spu.c')
-rw-r--r-- | gdb/solib-spu.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c index 5eeae62..c1c49e7 100644 --- a/gdb/solib-spu.c +++ b/gdb/solib-spu.c @@ -326,10 +326,11 @@ spu_bfd_fopen (char *name, CORE_ADDR addr) CORE_ADDR *open_closure = xmalloc (sizeof (CORE_ADDR)); *open_closure = addr; - nbfd = gdb_bfd_ref (bfd_openr_iovec (name, "elf32-spu", - spu_bfd_iovec_open, open_closure, - spu_bfd_iovec_pread, spu_bfd_iovec_close, - spu_bfd_iovec_stat)); + nbfd = bfd_openr_iovec (name, "elf32-spu", + spu_bfd_iovec_open, open_closure, + spu_bfd_iovec_pread, spu_bfd_iovec_close, + spu_bfd_iovec_stat); + gdb_bfd_ref (nbfd); if (!nbfd) return NULL; |