diff options
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r-- | gdb/rs6000-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 6aaeba9..710b5e3 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -37,6 +37,7 @@ #include "rs6000-tdep.h" #include "exec.h" #include "observer.h" +#include "xcoffread.h" #include <sys/ptrace.h> #include <sys/reg.h> @@ -1191,16 +1192,15 @@ static CORE_ADDR find_toc_address (CORE_ADDR pc) { struct vmap *vp; - extern CORE_ADDR get_toc_offset (struct objfile *); /* xcoffread.c */ for (vp = vmap; vp; vp = vp->nxt) { if (pc >= vp->tstart && pc < vp->tend) { /* vp->objfile is only NULL for the exec file. */ - return vp->dstart + get_toc_offset (vp->objfile == NULL - ? symfile_objfile - : vp->objfile); + return vp->dstart + xcoff_get_toc_offset (vp->objfile == NULL + ? symfile_objfile + : vp->objfile); } } error (_("Unable to find TOC entry for pc %s."), hex_string (pc)); |