This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Revert: solib_global_lookup: Fetch arch from objfile.
- From: Ulrich Weigand <uweigand at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 28 Aug 2015 17:09:50 -0000
- Subject: [binutils-gdb] Revert: solib_global_lookup: Fetch arch from objfile.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6f05925675b90983271289b782432b6297d26741
commit 6f05925675b90983271289b782432b6297d26741
Author: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Date: Fri Aug 28 19:04:56 2015 +0200
Revert: solib_global_lookup: Fetch arch from objfile.
solib_ops are installed as a property of the inferior gdbarch,
so they need to be systematically looked up via that architecture,
not some objfile architecture.
ChangeLog:
Revert:
2014-11-06 Doug Evans <xdje42@gmail.com>
* solib.c (solib_global_lookup): Fetch arch from objfile,
not target_gdbarch.
Diff:
---
gdb/ChangeLog | 7 +++++++
gdb/solib.c | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 21c7b42..2b1fad9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ Revert:
+ 2014-11-06 Doug Evans <xdje42@gmail.com>
+ * solib.c (solib_global_lookup): Fetch arch from objfile,
+ not target_gdbarch.
+
2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
* ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
diff --git a/gdb/solib.c b/gdb/solib.c
index d2ea901..c46116d 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1516,7 +1516,7 @@ solib_global_lookup (struct objfile *objfile,
const char *name,
const domain_enum domain)
{
- const struct target_so_ops *ops = solib_ops (get_objfile_arch (objfile));
+ const struct target_so_ops *ops = solib_ops (target_gdbarch ());
if (ops->lookup_lib_global_symbol != NULL)
return ops->lookup_lib_global_symbol (objfile, name, domain);