diff options
Diffstat (limited to 'gdb/amd64-nat.c')
-rw-r--r-- | gdb/amd64-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/amd64-nat.c b/gdb/amd64-nat.c index 6865456..d79b71b 100644 --- a/gdb/amd64-nat.c +++ b/gdb/amd64-nat.c @@ -59,7 +59,7 @@ amd64_native_gregset_reg_offset (struct gdbarch *gdbarch, int regnum) gdb_assert (regnum >= 0); - if (gdbarch_ptr_bit (gdbarch) == 32) + if (gdbarch_bfd_arch_info (gdbarch)->bits_per_word == 32) { reg_offset = amd64_native_gregset32_reg_offset; num_regs = amd64_native_gregset32_num_regs; @@ -96,7 +96,7 @@ amd64_supply_native_gregset (struct regcache *regcache, int num_regs = amd64_native_gregset64_num_regs; int i; - if (gdbarch_ptr_bit (gdbarch) == 32) + if (gdbarch_bfd_arch_info (gdbarch)->bits_per_word == 32) num_regs = amd64_native_gregset32_num_regs; if (num_regs > gdbarch_num_regs (gdbarch)) @@ -127,7 +127,7 @@ amd64_collect_native_gregset (const struct regcache *regcache, int num_regs = amd64_native_gregset64_num_regs; int i; - if (gdbarch_ptr_bit (gdbarch) == 32) + if (gdbarch_bfd_arch_info (gdbarch)->bits_per_word == 32) { num_regs = amd64_native_gregset32_num_regs; |