Index: gdb/amd64-nat.c |
diff --git a/gdb/amd64-nat.c b/gdb/amd64-nat.c |
index 68654568a48cdc8ac44841da009cd844e39b4c2a..d79b71bd355c7d55715ab9261da0d2e514f2d05c 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; |