[PATCH 0/4] Improve debugging of optimized code
Bernd Edlinger
bernd.edlinger@hotmail.de
Sun Jan 31 09:12:42 GMT 2021
I've rebased and re-tested the following patches
which are trying to improve the debug experience of
optimized gcc code. All have been posted previously
but I have been asked to post them again as a patch
series.
Only [2/4] depends on [1/4], these are about stepping
in inlined code.
The patches [3/4] and [4/4] are about breakpoints,
those do not depend on each other.
Bernd Edlinger (4):
Introduce a new line table flag is_weak
Fix range end handling of inlined subroutines
Fix handling of DW_AT_entry_pc of inlined subroutines
Skip .cold functions in search_minsyms_for_name
gdb/block.c | 15 ++-
gdb/buildsym.c | 103 ++++++++++++++++++---
gdb/buildsym.h | 3 +
gdb/dwarf2/read.c | 98 +++++++-------------
gdb/infrun.c | 33 ++++++-
gdb/jit.c | 1 +
gdb/linespec.c | 24 +++++
gdb/symmisc.c | 10 +-
gdb/symtab.c | 18 ++--
gdb/symtab.h | 4 +
gdb/testsuite/gdb.base/empty-inline.c | 42 +++++++++
gdb/testsuite/gdb.base/empty-inline.exp | 48 ++++++++++
gdb/testsuite/gdb.cp/empty-inline.cc | 33 +++++++
gdb/testsuite/gdb.cp/empty-inline.exp | 57 ++++++++++++
gdb/testsuite/gdb.cp/step-and-next-inline-1.exp | 30 ++++++
gdb/testsuite/gdb.cp/step-and-next-inline.cc | 6 ++
gdb/testsuite/gdb.cp/step-and-next-inline.exp | 93 ++++++++++++-------
.../gdb.dwarf2/dw2-out-of-range-end-of-seq.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp | 6 +-
gdb/xcoffread.c | 1 +
20 files changed, 497 insertions(+), 132 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/empty-inline.c
create mode 100644 gdb/testsuite/gdb.base/empty-inline.exp
create mode 100644 gdb/testsuite/gdb.cp/empty-inline.cc
create mode 100644 gdb/testsuite/gdb.cp/empty-inline.exp
create mode 100644 gdb/testsuite/gdb.cp/step-and-next-inline-1.exp
--
1.9.1
More information about the Gdb-patches
mailing list