* dwarf2read.c (dwarf_str_buffer): New.
authorJakub Jelinek <jakub@redhat.com>
Sat, 17 Nov 2001 00:08:10 +0000 (00:08 +0000)
committerJakub Jelinek <jakub@redhat.com>
Sat, 17 Nov 2001 00:08:10 +0000 (00:08 +0000)
commit4bdf3d3415f94b364348071c467912fa01a56957
tree77c59edafe0753f362fcd7149ee683f6f0fa2d36
parenta2213a3cbe6958d0635b0fd9c0a7bb932bc2ab5a
* dwarf2read.c (dwarf_str_buffer): New.
(struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
(DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
(dwarf2_has_info): Clear dwarf_str_offset.
(dwarf2_build_psymtabs): Read .debug_str section if present.
(dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
DWARF_STR_SIZE.
(psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
(read_attribute): Handle DW_FORM_strp.
(read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
handling code.
(read_indirect_string): New.
(dump_die): Handle DW_FORM_strp.
gdb/ChangeLog
gdb/dwarf2read.c