]> sourceware.org Git - systemtap.git/commit - staptree.cxx
PR5930: Address-op for $target and @cast members
authorJosh Stone <jistone@redhat.com>
Thu, 16 Jul 2009 01:21:56 +0000 (18:21 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 16 Jul 2009 01:35:48 +0000 (18:35 -0700)
commit03c75a4a21ef3dba8abbc7e596d2a102427a3d96
tree82e48a6a13454b9d0967b6d7e029aaf137ae47b9
parentaf4d5a48f2b0fed8b5a1bddda9bd1ffa81e7bd46
PR5930: Address-op for $target and @cast members

This allows the '&' operator to get the address of @cast and $target
variable expressions.

* staptree.h (target_symbol): add addressof field
* staptree.cxx (target_symbol::print): print '&' for addressof
  (cast_op::print): ditto
* parse.cxx (parser::parse_value): allow '&' prefix on $target/@cast
* dwflpp.cxx (dwflpp::translate_final_fetch_or_store): allow taking the
  computed address without actually doing a final fetch.
* tapset* (*::visit_target_symbol): throw errors for $vars w/o addresses
* testsuite/systemtap.base/cast.stp: add &@cast test
* testsuite/semok/target_addr.stp: test '&' on different member types
* testsuite/semko/target_addr?.stp: test failure on bitfields/registers
15 files changed:
dwflpp.cxx
parse.cxx
staptree.cxx
staptree.h
tapset-mark.cxx
tapset-perfmon.cxx
tapset-procfs.cxx
tapset-utrace.cxx
tapsets.cxx
testsuite/semko/target_addr1.stp [new file with mode: 0755]
testsuite/semko/target_addr2.stp [new file with mode: 0755]
testsuite/semko/target_addr3.stp [new file with mode: 0755]
testsuite/semok/target_addr.stp [new file with mode: 0755]
testsuite/systemtap.base/cast.exp
testsuite/systemtap.base/cast.stp
This page took 0.031023 seconds and 5 git commands to generate.