From 541d6970c278dc5a8e9e32246b7139261a687592 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 7 Dec 2023 10:36:07 +0100 Subject: [PATCH 09/11] [gdb/symtab] Recurse into c++ DW_TAG_subprogram DIEs for cooked index Recurse into c++ DW_TAG_subprogram DIEs for cooked index, to add DW_TAG_inlined_subroutine entries. Tested on x86_64-linux. --- gdb/dwarf2/read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index d2d50b5c9cc..39f6e480e19 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -18689,7 +18689,8 @@ cooked_indexer::index_dies (cutu_reader *reader, case DW_TAG_subprogram: if ((m_language == language_fortran - || m_language == language_ada) + || m_language == language_ada + || m_language == language_cplus) && this_entry != nullptr) { info_ptr = recurse (reader, info_ptr, this_entry, true); -- 2.35.3