aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2013-09-23 10:37:37 +0200
committerBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2013-11-01 04:11:58 +0100
commit540da1c35be501a8d4f69435d45459b393bea20b (patch)
tree74601fa1920a6389da0d3c4faf7129fb4d850a8f
parent05603024f6a970455ab63a9b7b12dcc1ce5490b7 (diff)
downloadelfutils-linaro_android_4.4.4.tar.gz
Change-Id: I81b5ef173b3b78609726d370aed5d2dca2b08db6 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--libdw/dwarf_entry_breakpoints.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdw/dwarf_entry_breakpoints.c b/libdw/dwarf_entry_breakpoints.c
index 0d5c9d9f..93ca6e59 100644
--- a/libdw/dwarf_entry_breakpoints.c
+++ b/libdw/dwarf_entry_breakpoints.c
@@ -81,7 +81,7 @@
/* Search a contiguous PC range for prologue-end markers.
If DWARF, look for proper markers.
Failing that, if ADHOC, look for the ad hoc convention. */
- inline int search_range (Dwarf_Die *die, Dwarf_Addr **bkpts, int *nbkpts, Dwarf_Lines *lines, size_t nlines, Dwarf_Addr low, Dwarf_Addr high,
+ inline int search_range (Dwarf_Addr **bkpts, int *nbkpts, Dwarf_Lines *lines, size_t nlines, Dwarf_Addr low, Dwarf_Addr high,
bool dwarf, bool adhoc)
{
size_t l = 0, u = nlines;
@@ -151,14 +151,14 @@ dwarf_entry_breakpoints (die, bkpts)
/* Most often there is a single contiguous PC range for the DIE. */
if (offset == 1)
- return search_range (die, bkpts, &nbkpts, lines, nlines, begin, end, true, true) ?: entrypc_bkpt (die, bkpts, &nbkpts);
+ return search_range (bkpts, &nbkpts, lines, nlines, begin, end, true, true) ?: entrypc_bkpt (die, bkpts, &nbkpts);
Dwarf_Addr lowpc = (Dwarf_Addr) -1l;
Dwarf_Addr highpc = (Dwarf_Addr) -1l;
while (offset > 0)
{
/* We have an address range entry. */
- if (search_range (die, bkpts, &nbkpts, lines, nlines, begin, end, true, false) < 0)
+ if (search_range (bkpts, &nbkpts, lines, nlines, begin, end, true, false) < 0)
return -1;
if (begin < lowpc)
@@ -175,6 +175,6 @@ dwarf_entry_breakpoints (die, bkpts)
fall back to just using the entrypc value. */
return (nbkpts
?: (lowpc == (Dwarf_Addr) -1l ? 0
- : search_range (die, bkpts, &nbkpts, lines, nlines, lowpc, highpc, false, true))
+ : search_range (bkpts, &nbkpts, lines, nlines, lowpc, highpc, false, true))
?: entrypc_bkpt (die, bkpts, &nbkpts));
}