* arm-tdep.c (arm_gdbarch_init): Enfore correct register number

for "fpscr" in target description.
This commit is contained in:
Ulrich Weigand 2011-04-01 19:38:15 +00:00
parent c5f5c3c232
commit 2b9e5ea604
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
* arm-tdep.c (arm_gdbarch_init): Enfore correct register number
for "fpscr" in target description.
2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,

View File

@ -8387,8 +8387,13 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
if (!valid_p)
break;
}
if (!valid_p && i == 16)
valid_p = 1;
if (!valid_p && i != 16)
/* Also require FPSCR. */
valid_p &= tdesc_numbered_register (feature, tdesc_data,
ARM_FPSCR_REGNUM, "fpscr");
if (!valid_p)
{
tdesc_data_cleanup (tdesc_data);
return NULL;