diff options
| author | Mark Wielaard <[email protected]> | 2014-12-27 16:16:29 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-01-16 09:01:57 +0100 |
| commit | f8198f2322b93dea4efbcf491b073a89e8aab1bf (patch) | |
| tree | 8fd39b0f2f54649e0fe8398cb0ef891b3cf1e03d /tests/run-funcscopes.sh | |
| parent | b4b2de9f1f1fb694b77371a61f808a1641bbafea (diff) | |
libdwfl: dwfl_module_getsrc should never match end_sequence line.
The line with end_sequence set has an address outside the current line
sequence. An end_sequence line has no other useful information except
marking the address as out of range.
Two tests, addrscopes and funcscopes, depended on matching the end_sequence
line. But that was because they included the high_pc address in the scope.
However the high_pc attributes has as address the first location past the
range associated with a given DIE. Adjust the tests to use high_pc - 1 as
end of the scope.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/run-funcscopes.sh')
| -rwxr-xr-x | tests/run-funcscopes.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run-funcscopes.sh b/tests/run-funcscopes.sh index d236f5c3..367729a7 100755 --- a/tests/run-funcscopes.sh +++ b/tests/run-funcscopes.sh @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2005 Red Hat, Inc. +# Copyright (C) 2005, 2014 Red Hat, Inc. # This file is part of elfutils. # # This file is free software; you can redistribute it and/or modify @@ -21,8 +21,8 @@ testfiles testfile25 testrun_compare ${abs_builddir}/funcscopes -e testfile25 incr <<\EOF testfile25: 0x8048000 .. 0x8049528 - inline-test.c (0x11): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x804834f (/home/roland/build/stock-elfutils/inline-test.c:9) - incr (0x2e): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x804834f (/home/roland/build/stock-elfutils/inline-test.c:9) + inline-test.c (0x11): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x804834e (/home/roland/build/stock-elfutils/inline-test.c:9) + incr (0x2e): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x804834e (/home/roland/build/stock-elfutils/inline-test.c:9) x [ 66] EOF |
