mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
* mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Use ARRAY_SIZE.
Change internal error to warning. Add i18n markup to warning string.
This commit is contained in:
parent
336c28c5f7
commit
52f0b832d7
@ -1,3 +1,9 @@
|
||||
2005-09-02 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Use ARRAY_SIZE.
|
||||
Change internal error to warning. Add i18n markup to warning
|
||||
string.
|
||||
|
||||
2005-09-02 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
|
||||
|
@ -961,10 +961,9 @@ mn10300_dwarf2_reg_to_regnum (int dwarf2)
|
||||
};
|
||||
|
||||
if (dwarf2 < 0
|
||||
|| dwarf2 >= (sizeof (dwarf2_to_gdb) / sizeof (dwarf2_to_gdb[0]))
|
||||
|| dwarf2 >= ARRAY_SIZE (dwarf2_to_gdb)
|
||||
|| dwarf2_to_gdb[dwarf2] == -1)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"bogus register number in debug info: %d", dwarf2);
|
||||
warning (_("bogus register number in debug info: %d"), dwarf2);
|
||||
|
||||
return dwarf2_to_gdb[dwarf2];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user