forked from Imagelibrary/binutils-gdb
* stabsread.c (read_member_functions): Initialize domain for stubbed
member functions to avoid gdb core dumps when printing pointers to member functions. * cp-valprint.c (cp_print_class_method): Check for stubbed member functions.
This commit is contained in:
@@ -1566,6 +1566,8 @@ read_member_functions (fip, pp, type, objfile)
|
||||
|
||||
if (TYPE_FLAGS (new_sublist -> fn_field.type) & TYPE_FLAG_STUB)
|
||||
{
|
||||
if (!TYPE_DOMAIN_TYPE (new_sublist -> fn_field.type))
|
||||
TYPE_DOMAIN_TYPE (new_sublist -> fn_field.type) = type;
|
||||
new_sublist -> fn_field.is_stub = 1;
|
||||
}
|
||||
new_sublist -> fn_field.physname = savestring (*pp, p - *pp);
|
||||
|
||||
Reference in New Issue
Block a user