gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 6 May 2011 15:06:49 +0000 (15:06 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 6 May 2011 15:06:49 +0000 (15:06 +0000)
commit8be455d765a7cfb8f2cb045ec80e2b2af1597d15
tree590872ecc1332caa71367175d77510db99fa6589
parent5b7b7d6e05dc23db02e401ec9fdf6d38cacafc41
gdb/
PR 12573
* dwarf2read.c (struct dwarf2_cu): New field has_loclist.
(producer_is_gcc_ge_4_0): New function.
(process_full_comp_unit): Set also symtab->locations_valid.  Move the
symtab->language code.
(var_decode_location): Set cu->has_loclist.
* symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
skip.  Intialize force_skip from locations_valid.  Move the prologue
skipping code into two passes.
* symtab.h (struct symtab): Make the primary field a bitfield.  New
field locations_valid.

gdb/testsuite/
PR 12573
* gdb.dwarf2/dw2-skip-prologue.S: New file.
* gdb.dwarf2/dw2-skip-prologue.c: New file.
* gdb.dwarf2/dw2-skip-prologue.exp: New file.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/symtab.c
gdb/symtab.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.exp [new file with mode: 0644]