From 246b383e71b24882db18311a748d713c57a2108e Mon Sep 17 00:00:00 2001 From: graydon Date: Wed, 31 Aug 2005 03:05:39 +0000 Subject: 2005-08-30 Graydon Hoare * tapsets.cxx (dwflpp::literal_stmt_for_local): Handle dwarf pointer-to-1-byte-means-char case (found in PR 1187) * parse.cxx (parse_symbol): Eliminate use of "." from target symbol parser, conflicting with string concatenation operator. * staptree.h (target_symbol::component_type) Eliminate comp_struct_pointer_member, since . and -> are considered the same now. * staptree.cxx (target_symbol::print): Likewise. * testsuite/buildok/seventeen.stp: Test solution on PR 1191. * testsuite/buildok/six.stp: Test working portion of PR 1155. * testsuite/semko/nineteen.stp: Unresolved portion of PR 1155. --- parse.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'parse.cxx') diff --git a/parse.cxx b/parse.cxx index 4a4b973f..c4f028b7 100644 --- a/parse.cxx +++ b/parse.cxx @@ -1650,19 +1650,12 @@ parser::parse_symbol () while (true) { string c; - if (peek_op (".")) - { - next(); - expect_ident (c); - tsym->components.push_back - (make_pair (target_symbol::comp_struct_member, c)); - } - else if (peek_op ("->")) + if (peek_op ("->")) { next(); expect_ident (c); tsym->components.push_back - (make_pair (target_symbol::comp_struct_pointer_member, c)); + (make_pair (target_symbol::comp_struct_member, c)); } else if (peek_op ("[")) { -- cgit