diff options
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r-- | gdb/mn10300-tdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index db9953b..532015d 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -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]; } |