diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-06-16 13:28:06 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-06-16 13:28:06 +0000 |
commit | 233dfcf06d379c41f7c0e8cc024ad16eeb7f3636 (patch) | |
tree | 3f7ead042295f601c7f5ae6fcb06e1a0a67a0ae3 /gdb/amd64-linux-nat.c | |
parent | 6da38f42ff97c1a08db009db80ae53f7e3353f29 (diff) | |
download | gdb-233dfcf06d379c41f7c0e8cc024ad16eeb7f3636.zip gdb-233dfcf06d379c41f7c0e8cc024ad16eeb7f3636.tar.gz gdb-233dfcf06d379c41f7c0e8cc024ad16eeb7f3636.tar.bz2 |
Check bits_per_word instead of gdbarch_ptr_bit
* amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
instead of gdbarch_ptr_bit.
* amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
(amd64_supply_native_gregset): Likewise.
(amd64_collect_native_gregset): Likewise.
* amd64-tdep.c (amd64_supply_fxsave): Likewise.
(amd64_supply_xsave): Likewise.
(amd64_collect_fxsave): Likewise.
(amd64_collect_xsave): Likewise.
Diffstat (limited to 'gdb/amd64-linux-nat.c')
-rw-r--r-- | gdb/amd64-linux-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c index ce62e2a..eb921bc 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c @@ -442,7 +442,7 @@ ps_err_e ps_get_thread_area (const struct ps_prochandle *ph, lwpid_t lwpid, int idx, void **base) { - if (gdbarch_ptr_bit (target_gdbarch) == 32) + if (gdbarch_bfd_arch_info (target_gdbarch)->bits_per_word == 32) { /* The full structure is found in <asm-i386/ldt.h>. The second integer is the LDT's base_address and that is used to locate |