diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-24 21:07:30 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-24 21:07:30 +0000 |
commit | 2d1050e98c97178f0ebad39576c3b072109fda07 (patch) | |
tree | 4a75997b58f98285fd54874f9e41ed2523b8f3ef | |
parent | 207b444da71c565bd46bb54fee9fb4258625398d (diff) | |
download | gdb-2d1050e98c97178f0ebad39576c3b072109fda07.tar.gz |
* solib.c (solib_global_lookup): Use solib_ops instead of global
current_target_so_ops.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/solib.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 10392dab17e..2e83ff95cf3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com> + * solib.c (solib_global_lookup): Use solib_ops instead of global + current_target_so_ops. + +2007-10-24 Ulrich Weigand <uweigand@de.ibm.com> + * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove. * config/frv-tm-frv.h: Delete file. diff --git a/gdb/solib.c b/gdb/solib.c index a72e6c57319..f687558180f 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -985,10 +985,11 @@ solib_global_lookup (const struct objfile *objfile, 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; } |