X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=gdb%2Fcorelow.c;h=82e6d7d983387b5423d2ea5ab7abdfdc71c95da3;hb=f28e27328b8ba53ad2e3fba2f4388f9533be2789;hp=7be9655f8b31d52045e0577661023cd106a0f3f5;hpb=10f9a2015b8a59001e93cebe9bb82774cffdf5ae;p=pf3gnuchains%2Fpf3gnuchains3x.git diff --git a/gdb/corelow.c b/gdb/corelow.c index 7be9655f8b..82e6d7d983 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -503,7 +503,7 @@ get_core_registers (struct regcache *regcache, int regno) ".reg-xfp", 3, "extended floating-point", 0); /* Supply dummy value for all registers not found in the core. */ - for (i = 0; i < NUM_REGS; i++) + for (i = 0; i < gdbarch_num_regs (current_gdbarch); i++) if (!regcache_valid_p (regcache, i)) regcache_raw_supply (regcache, i, NULL); }