diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-10-20 05:15:46 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-10-20 05:15:46 +0000 |
commit | 3a47045432484224045297da5e3254941c93b071 (patch) | |
tree | b610063b08829f46eb73649728d94856ee17c9b8 /gdb/minsyms.c | |
parent | 459877ea9d6bf27d5f7337e2155fb33c0bd996b0 (diff) | |
download | binutils-gdb-3a47045432484224045297da5e3254941c93b071.tar.gz |
* 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.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index fde97e9e6cf..77d7466f792 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. */ |