gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 16 Nov 2010 04:36:26 +0000 (04:36 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 16 Nov 2010 04:36:26 +0000 (04:36 +0000)
commit9816fde3d4a9966bea5b70950f3ac76f7382d525
treec531c8834b55233f0cd96d76693b8e9b97469ea0
parentca00c57b8c2add92f454d312ff76866ff3d0a55c
gdb/
Code cleanup.
* dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
(init_one_comp_unit): ... this one.
(prepare_one_comp_unit): New prototype.
(dw2_require_line_header, process_psymtab_comp_unit): Use
init_one_comp_unit.
(process_psymtab_comp_unit): Use prepare_one_comp_unit.
(load_partial_comp_unit): Remove variable attr.  Use
init_one_comp_unit with xmalloc.  Use prepare_one_comp_unit.
(load_full_comp_unit): Use init_one_comp_unit with xmalloc.  Use
prepare_one_comp_unit.
(read_signatured_type): Remove variable attr.  Use init_one_comp_unit.
Use prepare_one_comp_unit.
(alloc_one_comp_unit): Rename to ...
(init_one_comp_unit): ... here and remove there calloc, new parameter
cu.
(prepare_one_comp_unit): New function.
gdb/ChangeLog
gdb/dwarf2read.c