aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2008-03-27 12:28:48 +0000
committerMarkus Deuling <deuling@de.ibm.com>2008-03-27 12:28:48 +0000
commit40c58d9579954543583a31c183755c77c015c840 (patch)
tree998fa6e68e772de7a012d0088a3dcc72c9f29874 /gdb/xcoffread.c
parent5871526fc2745a477d3dcd5807934ce410568ffa (diff)
downloadgdb-40c58d9579954543583a31c183755c77c015c840.zip
gdb-40c58d9579954543583a31c183755c77c015c840.tar.gz
gdb-40c58d9579954543583a31c183755c77c015c840.tar.bz2
* xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
objfile arch.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index dead40c..660e012 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2119,6 +2119,7 @@ function_outside_compilation_unit_complaint (const char *arg1)
static void
scan_xcoff_symtab (struct objfile *objfile)
{
+ struct gdbarch *gdbarch = get_objfile_arch (objfile);
CORE_ADDR toc_offset = 0; /* toc offset value in data section. */
char *filestring = NULL;