diff options
author | Stan Cox <scox@redhat.com> | 2009-03-08 19:55:05 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-03-08 19:55:05 -0400 |
commit | 9b692b91ee25c33281c32c7ba86f5f0734e46be9 (patch) | |
tree | 0b39ae803c95d9d70c63b05e683d3fc3954bf1f3 /tapsets.cxx | |
parent | c12d974f4ad369f8d7585f2f07713dae3654b3fb (diff) | |
download | systemtap-steved-9b692b91ee25c33281c32c7ba86f5f0734e46be9.tar.gz systemtap-steved-9b692b91ee25c33281c32c7ba86f5f0734e46be9.tar.xz systemtap-steved-9b692b91ee25c33281c32c7ba86f5f0734e46be9.zip |
Fix and add tests for function(".so").statement(N)
* tapsets.cxx (query_dwarf_func): die_has_pc (dwarf_haspc) does not expect a
module_start for shared objects so don't call module_address_to_global for the
statement address.
* testsuite/systemtap.base/labels.exp: Add tests for executable .statement(N),
shared object .label("L") and so .statement(N).
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 02f0b553..d99eebe2 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -3920,9 +3920,9 @@ query_dwarf_func (Dwarf_Die * func, base_query * bq) else if (q->has_function_num || q->has_statement_num) { Dwarf_Addr query_addr = - q->dw.module_address_to_global(q->has_function_num ? q->function_num_val : - q->has_statement_num ? q->statement_num_val : - (assert(0) , 0)); + (q->has_function_num ? q->function_num_val : + q->has_statement_num ? q->statement_num_val : + (assert(0) , 0)); Dwarf_Die d; q->dw.function_die (&d); |