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]

[1/8] solib handler rework: a small fix


Hello,

this is a simple merge fix: the newly added solib_global_lookup didn't
use the new solib_ops mechanism instead of current_target_so_ops.

Bye,
Ulrich

ChangeLog:

	* solib.c (solib_global_lookup): Use solib_ops instead of global
	current_target_so_ops.

diff -urNp gdb-orig/gdb/solib.c gdb-head/gdb/solib.c
--- gdb-orig/gdb/solib.c	2007-08-28 23:30:20.000000000 +0200
+++ gdb-head/gdb/solib.c	2007-10-05 23:33:03.000000000 +0200
@@ -985,10 +985,11 @@ solib_global_lookup (const struct objfil
 		     const domain_enum domain,
 		     struct symtab **symtab)
 {
-  if (current_target_so_ops->lookup_lib_global_symbol != NULL)
-    return current_target_so_ops->lookup_lib_global_symbol (objfile,
-				name, linkage_name, domain, symtab);
+  struct target_so_ops *ops = solib_ops (current_gdbarch);
 
+  if (ops->lookup_lib_global_symbol != NULL)
+    return ops->lookup_lib_global_symbol (objfile, name, linkage_name,
+					  domain, symtab);
   return NULL;
 }
 
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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