Issue complaint instead of assert for invalid/unhandled DW_AT_accessibility

A previous patch called gdb_assert_not_reached whenever reading
the accessibility of a nested typedef definition. Wisely, Pedro has asked me
not do this.

This patch changes the previous one so that it issues a complaint instead.

gdb/ChangeLog:

	* dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
	DW_AT_accessibility.
This commit is contained in:
Keith Seitz 2017-10-17 14:15:36 -07:00
parent 2a6969e173
commit 3753468682
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-10-18 Keith Seitz <keiths@redhat.com>
* dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
DW_AT_accessibility.
2017-10-18 Yao Qi <yao.qi@linaro.org>
* features/tic6x-c62x-linux.c: Remove.

View File

@ -13131,7 +13131,8 @@ dwarf2_add_typedef (struct field_info *fip, struct die_info *die,
fp->is_protected = 1;
break;
default:
gdb_assert_not_reached ("unexpected accessibility attribute");
complaint (&symfile_complaints,
_("Unhandled DW_AT_accessibility value (%x)"), accessibility);
}
new_field->next = fip->typedef_field_list;