summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorgraydon <graydon>2005-08-31 03:05:39 +0000
committergraydon <graydon>2005-08-31 03:05:39 +0000
commit246b383e71b24882db18311a748d713c57a2108e (patch)
treee27f8baf030463152941112db10dbaf0e2800b67 /parse.cxx
parentd7f37943633359c2e7e61ba8c84d15144aa3b87f (diff)
downloadsystemtap-steved-246b383e71b24882db18311a748d713c57a2108e.tar.gz
systemtap-steved-246b383e71b24882db18311a748d713c57a2108e.tar.xz
systemtap-steved-246b383e71b24882db18311a748d713c57a2108e.zip
2005-08-30 Graydon Hoare <graydon@redhat.com>
* 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.
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx11
1 files changed, 2 insertions, 9 deletions
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 ("["))
{