aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-10-20 05:15:46 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-10-20 05:15:46 +0000
commit3a47045432484224045297da5e3254941c93b071 (patch)
treeb610063b08829f46eb73649728d94856ee17c9b8 /gdb/minsyms.c
parent459877ea9d6bf27d5f7337e2155fb33c0bd996b0 (diff)
downloadfsf-binutils-gdb-3a47045432484224045297da5e3254941c93b071.zip
fsf-binutils-gdb-3a47045432484224045297da5e3254941c93b071.tar.gz
fsf-binutils-gdb-3a47045432484224045297da5e3254941c93b071.tar.bz2
* objfiles.c (objfile_relocate): When relocating ->sections, use
objfile not symfile_objfile. * symtab.h, minsyms.c (minsyms_sort): New function. * objfiles.c (objfile_relocate): Call it. * remote-vx.c (vx_add_symbols): Call breakpoint_re_set. * objfiles.c, objfiles.h (objfile_to_front): New function. * remote-vx.c (vx_add_symbols): Call it. * coffread.c (coff_symtab_read): Handle common symbols the same way that partial-stab.h does.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index fde97e9..77d7466 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -601,6 +601,16 @@ install_minimal_symbols (objfile)
}
}
+/* Sort all the minimal symbols in OBJFILE. */
+
+void
+msymbols_sort (objfile)
+ struct objfile *objfile;
+{
+ qsort (objfile->msymbols, objfile->minimal_symbol_count,
+ sizeof (struct minimal_symbol), compare_minimal_symbols);
+}
+
/* Check if PC is in a shared library trampoline code stub.
Return minimal symbol for the trampoline entry or NULL if PC is not
in a trampoline code stub. */