+2007-11-09 Kevin Buettner <kevinb@redhat.com>
+
+ * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
+ register number to map. Adjust warning check and error/warning
+ return value code to match expectations of this function's callers.
+
2007-11-09 Joel Brobecker <brobecker@adacore.com>
* stack.c (print_this_frame_argument_p): Handle arguments passed
32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55,
- 56, 57, 58, 59, 60, 61, 62, 63
+ 56, 57, 58, 59, 60, 61, 62, 63,
+ 9
};
if (dwarf2 < 0
- || dwarf2 >= ARRAY_SIZE (dwarf2_to_gdb)
- || dwarf2_to_gdb[dwarf2] == -1)
+ || dwarf2 >= ARRAY_SIZE (dwarf2_to_gdb))
{
warning (_("Bogus register number in debug info: %d"), dwarf2);
- return 0;
+ return -1;
}
return dwarf2_to_gdb[dwarf2];