aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1993-11-29 23:40:31 +0000
committerKung Hsu <kung@cygnus>1993-11-29 23:40:31 +0000
commite9935d43b7cf6a75e38c5cb8747a28d52720e4bd (patch)
treed36c1fd62b6c81b9ab8fb706f249ded9e6d7ac64 /gdb/stabsread.c
parent1d208eb3aae4209249051f5d1994851f76107354 (diff)
downloadgdb-e9935d43b7cf6a75e38c5cb8747a28d52720e4bd.zip
gdb-e9935d43b7cf6a75e38c5cb8747a28d52720e4bd.tar.gz
gdb-e9935d43b7cf6a75e38c5cb8747a28d52720e4bd.tar.bz2
Modified Files:
ChangeLog stabsread.c * stabsread.c(read_struct_field): Fix the check when getting to member functions. (fix pr4000).
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index f79f351..4824b71 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. */