aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-08-10 22:09:22 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-08-10 22:09:22 +0000
commit4f6f9936b60049a0f3d8725b279b3a61082660f2 (patch)
tree5a683d632568461f451063a0f6f0852623ae6e65 /gdb/symfile.c
parent62cc2e1fa2d79bc4a8cf92d9e9b6216f97d0a9ee (diff)
downloadgdb-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/symfile.c')
-rw-r--r--gdb/symfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 4bdab91..c182faa 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1638,6 +1638,9 @@ symfile_bfd_open (char *name)
bfd_errmsg (bfd_get_error ()));
}
+ /* bfd_usrdata exists for applications and libbfd must not touch it. */
+ gdb_assert (bfd_usrdata (sym_bfd) == NULL);
+
return sym_bfd;
}