This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob]: Add get_objfile_arch
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>, GDB Patches <gdb-patches at sourceware dot org>
- Date: Thu, 27 Mar 2008 13:28:51 +0100
- Subject: [ob]: Add get_objfile_arch
Hi,
ppc build was broken by a missing get_objfile_arch. This patch adds it.
ChangeLog:
* xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
objfile arch.
Committed as obvious.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
diff -urpN src/gdb/xcoffread.c dev/gdb/xcoffread.c
--- src/gdb/xcoffread.c 2008-03-27 12:32:31.000000000 +0100
+++ dev/gdb/xcoffread.c 2008-03-27 13:24:39.000000000 +0100
@@ -2119,6 +2119,7 @@ function_outside_compilation_unit_compla
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;