gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 15 Mar 2011 15:57:12 +0000 (15:57 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 15 Mar 2011 15:57:12 +0000 (15:57 +0000)
commit9373cf26198091ce52ee863787dbb0ac7f053fcf
tree6f57fb2181dbb74d4010b98beff413218d08fa7b
parent9a1edae6874ca55a51e0246b347d4e863ee73854
gdb/
* dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
than LOW.  Comment it.
(read_partial_die): Call complaint for inappropriate zero LOWPC or
HIGHPC not strictly higher than LOWPC.

gdb/testsuite/
* gdb.dwarf2/dw2-empty-pc-range.S: New file.
* gdb.dwarf2/dw2-empty-pc-range.exp: New file.
* gdb.dwarf2/pr11465.S: New .text labels text_start and text_end.
Provide a stub byte there.
(DW_TAG_compile_unit): Set DW_AT_low_pc, DW_AT_high_pc and
DW_AT_entry_pc.
(dieb4, dieda): Set DW_AT_high_pc higher than DW_AT_low_pc.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.exp [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/pr11465.S