From 40c58d9579954543583a31c183755c77c015c840 Mon Sep 17 00:00:00 2001 From: Markus Deuling Date: Thu, 27 Mar 2008 12:28:48 +0000 Subject: [PATCH] * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by objfile arch. --- gdb/ChangeLog | 5 +++++ gdb/xcoffread.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3806e72faed..df42bb01cbe 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-03-27 Markus Deuling + + * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by + objfile arch. + 2008-03-27 Nick Roberts * mi/mi-main.c (enum captured_mi_execute_command_actions): diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index dead40c1818..660e0121436 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; -- 2.30.2