]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Teach the Dwarf 2 reader to read macro information.
authorJim Blandy <jimb@codesourcery.com>
Thu, 9 May 2002 20:03:36 +0000 (20:03 +0000)
committerJim Blandy <jimb@codesourcery.com>
Thu, 9 May 2002 20:03:36 +0000 (20:03 +0000)
commita24c30e1f108d431180b0c3367d9eaaa3bb52b4b
treecdb28a8595438abe7f2f092f02a4cf0cafe44e38
parentddad2199c569697df9fdd79d982fb776a8f11b12
Teach the Dwarf 2 reader to read macro information.
* dwarf2read.c: #include "macrotab.h".
(dwarf_macinfo_buffer): New variable.
(struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
dwarf_macinfo_size.
(DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
(dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
dwarf2_macro_spaces_in_definition): New complaints.
(dwarf2_has_info): Initialize dwarf_macinfo_offset.
(dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
(dwarf2_build_psymtabs_hard): Record the buffer and its size in
the partial symbol table.
(psymtab_to_symtab_1): Set the macinfo buffer and size globals
from what's recorded in the partial symbol table.
(read_file_scope): If the compilation unit has a
`DW_AT_macro_info' attribute, read its macro information.
* Makefile.in (dwarf2read.o): Depend on macrotab.h.
gdb/ChangeLog
gdb/Makefile.in
gdb/dwarf2read.c