diff options
| author | Petr Machata <[email protected]> | 2015-02-11 22:11:46 +0100 |
|---|---|---|
| committer | Petr Machata <[email protected]> | 2015-02-11 22:11:46 +0100 |
| commit | b4da85ded5de790aa2cddd6d725970945c97df89 (patch) | |
| tree | 8d17685190e1c497d2f24495e38821b084386671 /tests/run-dwarf-ranges.sh | |
| parent | 6f5934c1afa8f34bfb8f86b191ded9af854e757f (diff) | |
dwarf_ranges: do not request base address attributes if not necessary
- Instead of bailing out at iteration start, we remember the
base-address-selecting attributes were not seen, and then bail out
later if no base address selection entry has been seen.
Signed-off-by: Petr Machata <[email protected]>
Diffstat (limited to 'tests/run-dwarf-ranges.sh')
| -rwxr-xr-x | tests/run-dwarf-ranges.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/run-dwarf-ranges.sh b/tests/run-dwarf-ranges.sh new file mode 100755 index 00000000..d202ed3f --- /dev/null +++ b/tests/run-dwarf-ranges.sh @@ -0,0 +1,27 @@ +#! /bin/sh +# Copyright (C) 2015 Red Hat, Inc. +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +. $srcdir/test-subr.sh + +testfiles debug-ranges-no-lowpc.o + +testrun_compare ${abs_builddir}/dwarf-ranges debug-ranges-no-lowpc.o 0xb <<\EOF +1..2 (base 0) +3..4 (base 0) +EOF + +exit 0 |
