summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-05-15 14:26:32 -0700
committerJosh Stone <jistone@redhat.com>2009-05-15 14:26:32 -0700
commit1adf8ef1ca448709a7a4527b916d65ada0b3fc04 (patch)
treed4bd8d6e51a92ec9662b7e3a1d828db1e5e3bab1 /dwflpp.cxx
parent511785011b1bd7092d9e093f6e954c131d83a3a0 (diff)
downloadsystemtap-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.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index c884a3ab..c7dfc5a0 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -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;
}