mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-27 04:46:58 +00:00
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* inf-child.c (inf_child_fetch_inferior_registers): Use get_regcache_arch to get at the current architecture by regcache.
This commit is contained in:
parent
3b3b142300
commit
b1a653ae15
@ -1,3 +1,8 @@
|
||||
2007-10-30 Markus Deuling <deuling@de.ibm.com>
|
||||
|
||||
* inf-child.c (inf_child_fetch_inferior_registers): Use
|
||||
get_regcache_arch to get at the current architecture by regcache.
|
||||
|
||||
2007-10-30 Markus Deuling <deuling@de.ibm.com>
|
||||
|
||||
* inf-ptrace.c (inf_ptrace_fetch_registers)
|
||||
|
@ -35,7 +35,9 @@ inf_child_fetch_inferior_registers (struct regcache *regcache, int regnum)
|
||||
{
|
||||
if (regnum == -1)
|
||||
{
|
||||
for (regnum = 0; regnum < gdbarch_num_regs (current_gdbarch); regnum++)
|
||||
for (regnum = 0;
|
||||
regnum < gdbarch_num_regs (get_regcache_arch (regcache));
|
||||
regnum++)
|
||||
regcache_raw_supply (regcache, regnum, NULL);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user