Move code to new file dwarf2/macro.c
authorTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:08 +0000 (09:28 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:15 +0000 (09:28 -0600)
commitc90ec28ae44ebf72d57d58439d02fc5aab90f1f6
treeb8d04f025c5bdeaa2d32d6e89a5c788a3851bbfb
parent4f44ae6c69b839712a33a46aaa62d58d2b16b4ca
Move code to new file dwarf2/macro.c

This moves some more code out of dwarf2/read.c, introducing new files
dwarf2/macro.c and dwarf2/macro.h.

gdb/ChangeLog
2020-03-26  Tom Tromey  <tom@tromey.com>

* dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
(macro_start_file, consume_improper_spaces)
(parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
(dwarf_parse_macro_header, dwarf_decode_macro_bytes)
(dwarf_decode_macros): Move to macro.c.
* dwarf2/macro.c: New file.
* dwarf2/macro.h: New file.
* Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
gdb/ChangeLog
gdb/Makefile.in
gdb/dwarf2/macro.c [new file with mode: 0644]
gdb/dwarf2/macro.h [new file with mode: 0644]
gdb/dwarf2/read.c