PR gdb/18464: Do not crash on unrecognized GNU .note.ABI-tag values
Diagnosis of unexpected input (in this case, in an executable file) should not crash as if it were a bug in GDB. gdb/ PR gdb/18464 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning rather than internal_error for an unrecognized value.
This commit is contained in:
parent
14ae95f220
commit
c8f6c93cb2
|
@ -1,3 +1,9 @@
|
|||
2015-05-29 Roland McGrath <mcgrathr@google.com>
|
||||
|
||||
PR gdb/18464
|
||||
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
|
||||
rather than internal_error for an unrecognized value.
|
||||
|
||||
2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
|
||||
|
||||
* xtensa-tdep.c (xtensa_pseudo_register_read)
|
||||
|
|
|
@ -493,10 +493,8 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
|
|||
break;
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
_("generic_elf_osabi_sniff_abi_tag_sections: "
|
||||
"unknown OS number %d"),
|
||||
abi_tag);
|
||||
warning (_("GNU ABI tag value %u unrecognized."), abi_tag);
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue