From 39cb3d04889db22f0642427bcf878c16b4d779ea Mon Sep 17 00:00:00 2001
From: Peter Schauer <Peter.Schauer@mytum.de>
Date: Wed, 14 Apr 1993 19:53:11 +0000
Subject: 	* 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.

---
 gdb/stabsread.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'gdb/stabsread.c')

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);
-- 
cgit v1.1