mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
2007-10-08 Markus Deuling <deuling@de.ibm.com>
* amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache): Use get_regcache_arch or get_frame_arch to get at the current architecture by regcache or by frame, respectively. * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise. * amd64-nat.c (amd64_supply_native_gregset) (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
This commit is contained in:
@@ -98,8 +98,8 @@ amd64_supply_native_gregset (struct regcache *regcache,
|
||||
if (gdbarch_ptr_bit (gdbarch) == 32)
|
||||
num_regs = amd64_native_gregset32_num_regs;
|
||||
|
||||
if (num_regs > gdbarch_num_regs (current_gdbarch))
|
||||
num_regs = gdbarch_num_regs (current_gdbarch);
|
||||
if (num_regs > gdbarch_num_regs (gdbarch))
|
||||
num_regs = gdbarch_num_regs (gdbarch);
|
||||
|
||||
for (i = 0; i < num_regs; i++)
|
||||
{
|
||||
@@ -145,8 +145,8 @@ amd64_collect_native_gregset (const struct regcache *regcache,
|
||||
}
|
||||
}
|
||||
|
||||
if (num_regs > gdbarch_num_regs (current_gdbarch))
|
||||
num_regs = gdbarch_num_regs (current_gdbarch);
|
||||
if (num_regs > gdbarch_num_regs (gdbarch))
|
||||
num_regs = gdbarch_num_regs (gdbarch);
|
||||
|
||||
for (i = 0; i < num_regs; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user