diff options
author | Josh Stone <jistone@redhat.com> | 2009-08-11 14:59:41 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-11 17:13:49 -0700 |
commit | 9922bd3d9ce58712cf570abefbafebaf3f407ffe (patch) | |
tree | 057d62475f09373fa09694d676785ea7e9475662 /dwflpp.cxx | |
parent | 57db697397af3911c40682dc91a2b13e3943e478 (diff) | |
download | systemtap-steved-9922bd3d9ce58712cf570abefbafebaf3f407ffe.tar.gz systemtap-steved-9922bd3d9ce58712cf570abefbafebaf3f407ffe.tar.xz systemtap-steved-9922bd3d9ce58712cf570abefbafebaf3f407ffe.zip |
Don't call dwarf_lowpc after dwarf_entrypc fails
The implementation of dwarf_entrypc already checks for _lowpc, so it's
redundant for us to attempt a _lowpc call too.
* dwflpp.cxx (dwflpp::function_entrypc): Remove XXX comment.
(dwflpp::die_entrypc): Don't bother with _lowpc if _entrypc fails
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r-- | dwflpp.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -1193,7 +1193,6 @@ dwflpp::function_entrypc (Dwarf_Addr * addr) { assert (function); return (dwarf_entrypc (function, addr) == 0); - // XXX: see also _lowpc ? } @@ -1210,12 +1209,6 @@ dwflpp::die_entrypc (Dwarf_Die * die, Dwarf_Addr * addr) if (rc) { - lookup_method = "dwarf_lowpc"; - rc = dwarf_lowpc (die, addr); - } - - if (rc) - { lookup_method = "dwarf_ranges"; Dwarf_Addr base; |