diff options
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 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. */ |