diff options
author | Josh Stone <jistone@redhat.com> | 2009-05-15 14:26:32 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-05-15 14:26:32 -0700 |
commit | 1adf8ef1ca448709a7a4527b916d65ada0b3fc04 (patch) | |
tree | d4bd8d6e51a92ec9662b7e3a1d828db1e5e3bab1 /dwflpp.cxx | |
parent | 511785011b1bd7092d9e093f6e954c131d83a3a0 (diff) | |
download | systemtap-steved-1adf8ef1ca448709a7a4527b916d65ada0b3fc04.tar.gz systemtap-steved-1adf8ef1ca448709a7a4527b916d65ada0b3fc04.tar.xz systemtap-steved-1adf8ef1ca448709a7a4527b916d65ada0b3fc04.zip |
Break the dwflpp dependence on query_cu
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r-- | dwflpp.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -181,8 +181,8 @@ dwflpp::focus_on_function(Dwarf_Die * f) } -void -dwflpp::query_cu_containing_address(Dwarf_Addr a, void *arg) +Dwarf_Die * +dwflpp::query_cu_containing_address(Dwarf_Addr a) { Dwarf_Addr bias; assert(dwfl); @@ -194,9 +194,8 @@ dwflpp::query_cu_containing_address(Dwarf_Addr a, void *arg) a += module_start; Dwarf_Die* cudie = dwfl_module_addrdie(module, a, &bias); - if (cudie) // address could be wildly out of range - query_cu (cudie, arg); assert(bias == module_bias); + return cudie; } |