From e9935d43b7cf6a75e38c5cb8747a28d52720e4bd Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Mon, 29 Nov 1993 23:40:31 +0000 Subject: [PATCH] Modified Files: ChangeLog stabsread.c * stabsread.c(read_struct_field): Fix the check when getting to member functions. (fix pr4000). --- gdb/ChangeLog | 5 +++++ gdb/stabsread.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f79f841ec1a..30d7f4fe45f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 29 15:34:58 1993 Kung Hsu (kung@cirdan.cygnus.com) + + * stabsread.c(read_struct_field): Fix the check when getting to + member functions. + Mon Nov 29 16:48:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) gcc -Wall -O lint: diff --git a/gdb/stabsread.c b/gdb/stabsread.c index f79f35142df..4824b718864 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -2343,7 +2343,7 @@ read_struct_fields (fip, pp, type, objfile) } read_one_struct_field (fip, pp, p, type, objfile); } - if (p[1] == ':') + if (p[0] == ':' && p[1] == ':') { /* chill the list of fields: the last entry (at the head) is a partially constructed entry which we now scrub. */ -- 2.30.2