diff options
Diffstat (limited to 'gdb/solib-irix.c')
-rw-r--r-- | gdb/solib-irix.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c index d060c2d..a2a0d59 100644 --- a/gdb/solib-irix.c +++ b/gdb/solib-irix.c @@ -503,8 +503,12 @@ irix_current_sos (void) return 0; } - read_memory (debug_base, addr_buf, TARGET_ADDR_BIT / TARGET_CHAR_BIT); - lma = extract_mips_address (addr_buf, TARGET_ADDR_BIT / TARGET_CHAR_BIT); + read_memory (debug_base, + addr_buf, + gdbarch_addr_bit (current_gdbarch) / TARGET_CHAR_BIT); + lma = extract_mips_address (addr_buf, + gdbarch_addr_bit (current_gdbarch) + / TARGET_CHAR_BIT); while (lma) { @@ -605,8 +609,12 @@ irix_open_symbol_file_object (void *from_ttyp) return 0; /* failed somehow... */ /* First link map member should be the executable. */ - read_memory (debug_base, addr_buf, TARGET_ADDR_BIT / TARGET_CHAR_BIT); - lma = extract_mips_address (addr_buf, TARGET_ADDR_BIT / TARGET_CHAR_BIT); + read_memory (debug_base, + addr_buf, + gdbarch_addr_bit (current_gdbarch) / TARGET_CHAR_BIT); + lma = extract_mips_address (addr_buf, + gdbarch_addr_bit (current_gdbarch) + / TARGET_CHAR_BIT); if (lma == 0) return 0; /* failed somehow... */ |