mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user