This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]