gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 31 Mar 2010 18:13:38 +0000 (18:13 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 31 Mar 2010 18:13:38 +0000 (18:13 +0000)
commit8072405bd6f570b75a030fbd81f25ac79260b066
treee571e5fc3be62ede08bc679a272aa75fc2499113
parent8bf6485c1cee41f31564e1097199ff67a3615ebe
gdb/
Fix crash on reading wrong function declaration DWARF.
* dwarf2read.c (read_subroutine_type): New variable void_type.
Pre-fill all TYPE_FIELD_TYPEs.  Move nparams and iparams initialization
more close to their use.

gdb/testsuite/
* gdb.dwarf2/dw2-bad-parameter-type.exp,
gdb.dwarf2/dw2-bad-parameter-type.S: New.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp [new file with mode: 0644]