diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-08-10 22:09:22 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-08-10 22:09:22 +0000 |
commit | 4f6f9936b60049a0f3d8725b279b3a61082660f2 (patch) | |
tree | 5a683d632568461f451063a0f6f0852623ae6e65 /gdb/solib.c | |
parent | 62cc2e1fa2d79bc4a8cf92d9e9b6216f97d0a9ee (diff) | |
download | gdb-4f6f9936b60049a0f3d8725b279b3a61082660f2.zip gdb-4f6f9936b60049a0f3d8725b279b3a61082660f2.tar.gz gdb-4f6f9936b60049a0f3d8725b279b3a61082660f2.tar.bz2 |
gdb/
* objfiles.c (gdb_bfd_unref): Use the bfd_usrdata accessor.
* solib.c (symbol_add_stub): Likewise.
* symfile.c (symfile_bfd_open): Assert BFD_USRDATA is NULL.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index 564a55c..aad2d59 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -459,7 +459,7 @@ symbol_add_stub (struct so_list *so, int flags) so->objfile = symbol_file_add_from_bfd (so->abfd, flags, sap, OBJF_SHARED); p_refcount = xmalloc (sizeof (*p_refcount)); *p_refcount = 2; /* Both solib and objfile refer to this abfd. */ - so->abfd->usrdata = p_refcount; + bfd_usrdata (so->abfd) = p_refcount; free_section_addr_info (sap); |