aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-04-14 19:53:11 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-04-14 19:53:11 +0000
commit39cb3d04889db22f0642427bcf878c16b4d779ea (patch)
tree3822d6361061119e49ce8b19571da24f4d8f51a5 /gdb/stabsread.c
parentb54a2f2d90f897e8172f44ae0b9483a5963e0d1f (diff)
downloadgdb-39cb3d04889db22f0642427bcf878c16b4d779ea.zip
gdb-39cb3d04889db22f0642427bcf878c16b4d779ea.tar.gz
gdb-39cb3d04889db22f0642427bcf878c16b4d779ea.tar.bz2
* 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.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 52c6c72..0061d20 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -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);