[0/4] Move index reading code out of dwarf2/read.c

Message ID 20230213145559.46676-1-simon.marchi@polymtl.ca
Headers
Series Move index reading code out of dwarf2/read.c |

Message

Simon Marchi Feb. 13, 2023, 2:55 p.m. UTC
  This is a small series to move some code out of dwarf2/read.c.  It makes
a small dent in that file's length.  Before the series, it is 23953
lines long, and after 21941 (~8% reduction).  But most importantly (at
least for me), it makes it clear that some functions are only used for
reading either .gdb_index or .debug_names, which was not obvious when
they were all in read.c.

Simon Marchi (4):
  gdb/dwarf2: rename some things, index -> gdb_index
  gdb/dwarf2: move some things to read.h
  gdb/dwarf2: split .gdb_index reading code to own file
  gdb/dwarf2: split .debug_names reading code to own file

 gdb/Makefile.in               |    4 +
 gdb/dwarf2/read-debug-names.c | 1052 ++++++++++++++
 gdb/dwarf2/read-debug-names.h |   30 +
 gdb/dwarf2/read-gdb-index.c   |  835 ++++++++++++
 gdb/dwarf2/read-gdb-index.h   |   47 +
 gdb/dwarf2/read.c             | 2426 +++------------------------------
 gdb/dwarf2/read.h             |  223 +++
 7 files changed, 2398 insertions(+), 2219 deletions(-)
 create mode 100644 gdb/dwarf2/read-debug-names.c
 create mode 100644 gdb/dwarf2/read-debug-names.h
 create mode 100644 gdb/dwarf2/read-gdb-index.c
 create mode 100644 gdb/dwarf2/read-gdb-index.h


base-commit: 14d0e6818a022b72c265f15f63c8ccc2fc8c302a