public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Move index reading code out of dwarf2/read.c
@ 2023-02-13 14:55 Simon Marchi
  2023-02-13 14:55 ` [PATCH 1/4] gdb/dwarf2: rename some things, index -> gdb_index Simon Marchi
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Simon Marchi @ 2023-02-13 14:55 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

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
-- 
2.39.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-02-14 19:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 14:55 [PATCH 0/4] Move index reading code out of dwarf2/read.c Simon Marchi
2023-02-13 14:55 ` [PATCH 1/4] gdb/dwarf2: rename some things, index -> gdb_index Simon Marchi
2023-02-13 23:30   ` Tom Tromey
2023-02-14 19:55     ` Simon Marchi
2023-02-13 14:55 ` [PATCH 2/4] gdb/dwarf2: move some things to read.h Simon Marchi
2023-02-13 23:33   ` Tom Tromey
2023-02-14  2:24     ` Thiago Jung Bauermann
2023-02-14 19:35       ` Simon Marchi
2023-02-14 19:37     ` Simon Marchi
2023-02-13 14:55 ` [PATCH 3/4] gdb/dwarf2: split .gdb_index reading code to own file Simon Marchi
2023-02-13 23:35   ` Tom Tromey
2023-02-13 14:55 ` [PATCH 4/4] gdb/dwarf2: split .debug_names " Simon Marchi
2023-02-13 23:38   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).