This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/3] Add a DWARF index cache
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Mon, 9 Jul 2018 17:55:48 -0400
- Subject: [PATCH 0/3] Add a DWARF index cache
Hi,
This is the non-RFC version of
https://sourceware.org/ml/gdb-patches/2018-05/msg00216.html
I have addressed most of Tom's comments about the original submission, see here
for more details:
https://sourceware.org/ml/gdb-patches/2018-07/msg00228.html
Simon Marchi (3):
Make index reading functions more modular
Introduce scoped_mmapped_file
Add DWARF index cache
gdb/Makefile.in | 3 +
gdb/build-id.h | 11 +
gdb/common/pathstuff.c | 16 +
gdb/common/pathstuff.h | 10 +
gdb/common/scoped_fd.h | 17 +-
gdb/common/scoped_mmapped_file.h | 70 ++++
gdb/dwarf-index-cache.c | 474 ++++++++++++++++++++++++++
gdb/dwarf-index-cache.h | 112 ++++++
gdb/dwarf-index-common.h | 5 +
gdb/dwarf-index-write.c | 81 +++--
gdb/dwarf-index-write.h | 34 ++
gdb/dwarf2read.c | 253 ++++++++++----
gdb/dwarf2read.h | 5 +
gdb/testsuite/gdb.base/index-cache.c | 23 ++
gdb/testsuite/gdb.base/index-cache.exp | 204 +++++++++++
gdb/testsuite/gdb.base/maint.exp | 24 ++
gdb/unittests/scoped_mmapped_file-selftests.c | 96 ++++++
17 files changed, 1340 insertions(+), 98 deletions(-)
create mode 100644 gdb/common/scoped_mmapped_file.h
create mode 100644 gdb/dwarf-index-cache.c
create mode 100644 gdb/dwarf-index-cache.h
create mode 100644 gdb/dwarf-index-write.h
create mode 100644 gdb/testsuite/gdb.base/index-cache.c
create mode 100644 gdb/testsuite/gdb.base/index-cache.exp
create mode 100644 gdb/unittests/scoped_mmapped_file-selftests.c
--
2.7.4