diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-24 21:15:35 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-24 21:15:35 +0000 |
commit | 734598d9214a617704a38fc59ad1643e15d63cc0 (patch) | |
tree | 6afa821807e15ba11beaf017b82cbaa4a2dec91e /gdb/solib-irix.c | |
parent | d542061a791651ada2064bcc23f62ec142acc628 (diff) | |
download | gdb-734598d9214a617704a38fc59ad1643e15d63cc0.zip gdb-734598d9214a617704a38fc59ad1643e15d63cc0.tar.gz gdb-734598d9214a617704a38fc59ad1643e15d63cc0.tar.bz2 |
* mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
(mips_irix_init_abi): Call set_solib_ops.
* solib-irix.c: Include "solib.h" and "solib-irix.h".
(irix_so_ops): Make global.
(_initialize_irix_solib): Do not set current_target_so_ops.
* solib-irix.h: New file.
* Makefile.in: Update dependencies.
Diffstat (limited to 'gdb/solib-irix.c')
-rw-r--r-- | gdb/solib-irix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c index e129cf3..0455328 100644 --- a/gdb/solib-irix.c +++ b/gdb/solib-irix.c @@ -33,6 +33,9 @@ #include "inferior.h" #include "solist.h" +#include "solib.h" +#include "solib-irix.h" + /* Link map info to include in an allocate so_list entry. Unlike some of the other solib backends, this (Irix) backend chooses to decode @@ -705,7 +708,7 @@ irix_in_dynsym_resolve_code (CORE_ADDR pc) return 0; } -static struct target_so_ops irix_so_ops; +struct target_so_ops irix_so_ops; void _initialize_irix_solib (void) @@ -718,7 +721,4 @@ _initialize_irix_solib (void) irix_so_ops.current_sos = irix_current_sos; irix_so_ops.open_symbol_file_object = irix_open_symbol_file_object; irix_so_ops.in_dynsym_resolve_code = irix_in_dynsym_resolve_code; - - /* FIXME: Don't do this here. *_gdbarch_init() should set so_ops. */ - current_target_so_ops = &irix_so_ops; } |