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:
Roland McGrath 2015-05-29 09:24:36 -07:00
parent 14ae95f220
commit c8f6c93cb2
2 changed files with 48 additions and 44 deletions

View File

@ -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)

View File

@ -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;
}