diff options
author | Fred Fish <fnf@specifix.com> | 1992-03-09 05:23:45 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-03-09 05:23:45 +0000 |
commit | a846ac554cf2fcb272e7dda8e02d1e42b62c7cf8 (patch) | |
tree | 8858c41726255df786ff9db710e93c46c16203b0 /gdb/xcoffexec.c | |
parent | a215e6f930542a533ed3ee9124031cbdcd2102c2 (diff) | |
download | gdb-a846ac554cf2fcb272e7dda8e02d1e42b62c7cf8.zip gdb-a846ac554cf2fcb272e7dda8e02d1e42b62c7cf8.tar.gz gdb-a846ac554cf2fcb272e7dda8e02d1e42b62c7cf8.tar.bz2 |
* symfile.h: Add prototype for iterate_over_msymbols().
* symtab.c (cplus_mangled_symbol): Add function.
* symtab.c (lookup_symbol): Call cplus_mangled_symbol via
iterate_over_msymbols to find demangled C++ symbol.
* xcoffexec.c (relocate_minimal_symbol): Return meaningful
value to iterate_over_msymbols().
* xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
msymbols().
Diffstat (limited to 'gdb/xcoffexec.c')
-rw-r--r-- | gdb/xcoffexec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c index e698ffc..4e45a75 100644 --- a/gdb/xcoffexec.c +++ b/gdb/xcoffexec.c @@ -330,7 +330,7 @@ map_vmap (bfd *bf, bfd *arch) /* Called via iterate_over_msymbols to relocate minimal symbols */ -static void +static PTR relocate_minimal_symbol (objfile, msymbol, arg1, arg2, arg3) struct objfile *objfile; struct minimal_symbol *msymbol; @@ -340,6 +340,7 @@ relocate_minimal_symbol (objfile, msymbol, arg1, arg2, arg3) { if (msymbol->address < TEXT_SEGMENT_BASE) msymbol -> address += (int) arg1; + return (NULL); } /* true, if symbol table and minimal symbol table are relocated. */ @@ -404,7 +405,7 @@ struct stat *vip; } } if (vp->tstart != old_start) { - iterate_over_msymbols (relocate_minimal_symbol, + (void) iterate_over_msymbols (relocate_minimal_symbol, (PTR) (vp->tstart - old_start), (PTR) NULL, (PTR) NULL); |