diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-07-14 16:57:18 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-07-14 16:57:18 +0000 |
commit | 01a8f077edb6f09060c339831a9b3c7e5f45c812 (patch) | |
tree | 3fefc13e20780b54fb1e22ba7fd1b4a36e0787b4 /binutils/testsuite/binutils-all/testranges.d | |
parent | 140033b39116ffc7d6ca946c43c19880e2e48a0c (diff) | |
download | gdb-01a8f077edb6f09060c339831a9b3c7e5f45c812.zip gdb-01a8f077edb6f09060c339831a9b3c7e5f45c812.tar.gz gdb-01a8f077edb6f09060c339831a9b3c7e5f45c812.tar.bz2 |
binutils/
Support unordered .debug_info references to .debug_ranges.
* dwarf.c (struct range_entry, range_entry_compar): New.
(display_debug_ranges): Remove variables last_offset, first, j,
seen_first_offset, use_debug_info and next. New variables
range_entries and range_entry_fill. Create the sorted copy
range_entries. Remove the FIXME error on detected unordered references.
* dwarf.h (debug_info <range_lists>): New comment.
binutils/testsuite/
* binutils-all/objcopy.exp (testranges): New test.
* binutils-all/testranges.d, binutils-all/testranges.s: New files.
Diffstat (limited to 'binutils/testsuite/binutils-all/testranges.d')
-rw-r--r-- | binutils/testsuite/binutils-all/testranges.d | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/testranges.d b/binutils/testsuite/binutils-all/testranges.d new file mode 100644 index 0000000..5aa7912 --- /dev/null +++ b/binutils/testsuite/binutils-all/testranges.d @@ -0,0 +1,14 @@ +#PROG: objcopy +#source: testranges.s +#readelf: -wR --wide +#name: unordered .debug_info references to .debug_ranges + +Contents of the .debug_ranges section: + + Offset Begin End + 00000000 00000001 00000002 + 00000000 <End of list> + 00000010 00000000 00000002 + 00000010 <End of list> + +#pass |