aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-irix.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-irix.c')
-rw-r--r--gdb/solib-irix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c
index 14f9fc2..0e80b94 100644
--- a/gdb/solib-irix.c
+++ b/gdb/solib-irix.c
@@ -505,9 +505,9 @@ irix_current_sos (void)
read_memory (debug_base,
addr_buf,
- gdbarch_addr_bit (current_gdbarch) / TARGET_CHAR_BIT);
+ gdbarch_addr_bit (target_gdbarch) / TARGET_CHAR_BIT);
lma = extract_mips_address (addr_buf,
- gdbarch_addr_bit (current_gdbarch)
+ gdbarch_addr_bit (target_gdbarch)
/ TARGET_CHAR_BIT);
while (lma)
@@ -611,9 +611,9 @@ irix_open_symbol_file_object (void *from_ttyp)
/* First link map member should be the executable. */
read_memory (debug_base,
addr_buf,
- gdbarch_addr_bit (current_gdbarch) / TARGET_CHAR_BIT);
+ gdbarch_addr_bit (target_gdbarch) / TARGET_CHAR_BIT);
lma = extract_mips_address (addr_buf,
- gdbarch_addr_bit (current_gdbarch)
+ gdbarch_addr_bit (target_gdbarch)
/ TARGET_CHAR_BIT);
if (lma == 0)
return 0; /* failed somehow... */