binutils-gdb/gdb/dwarf2
Tom Tromey b10f2cd3f3 Correctly handle forward DIE references in scanner
The cooked index scanner has special code to handle forward DIE
references.  However, a bug report lead to the discovery that this
code does not work -- the "deferred_entry::spec_offset" field is
written to but never used, i.e., the lookup is done using the wrong
key.

This patch fixes the bug and adds a regression test.

The test in the bug itself used a thread_local variable, which
provoked a failure at runtime.  This test instead uses "maint print
objfiles" and then inspects to ensure that the entry in question has a
parent.  This lets us avoid a clang dependency in the test.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30271
2023-05-15 08:49:24 -06:00
..
abbrev-cache.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
abbrev-cache.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
abbrev.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
abbrev.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
ada-imported.c Handle Ada Pragma Import and Pragma Export 2023-05-12 13:25:28 -06:00
attribute.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
attribute.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
call-site.h gdb: update some copyright years (2022 -> 2023) 2023-03-01 20:54:56 -05:00
comp-unit-head.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
comp-unit-head.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
cooked-index.c gdb: Fix building with latest libc++ 2023-04-29 00:35:11 -07:00
cooked-index.h gdb/dwarf: Fix MinGW build 2023-04-10 22:33:48 +00:00
cu.c Rename objfile_type to builtin_type 2023-03-18 11:12:38 -06:00
cu.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
die.c Move some code from dwarf2/read.c to die.c 2023-02-12 13:03:58 -07:00
die.h Move some code from dwarf2/read.c to die.c 2023-02-12 13:03:58 -07:00
dwz.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
dwz.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
expr.c Do not print <synthetic pointer> when piece is optimized out 2023-05-11 15:47:37 -06:00
expr.h Change value::m_initialized to bool 2023-02-15 15:07:07 -07:00
file-and-dir.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame-tailcall.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame-tailcall.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame.c Remove deprecated_lval_hack 2023-02-13 15:22:20 -07:00
frame.h gdb: dwarf2 generic implementation for caching function data 2023-01-25 21:04:40 +01:00
index-cache.c Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
index-cache.h Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
index-common.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
index-common.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
index-write.c Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
index-write.h Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
leb.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
leb.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
line-header.c [gdb/symtab] Handle empty file name in .debug_line section 2023-04-17 18:09:32 +02:00
line-header.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
loc.c Handle function descriptors in call_site_target 2023-04-21 07:13:45 -06:00
loc.h Handle Ada Pragma Import and Pragma Export 2023-05-12 13:25:28 -06:00
macro.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
macro.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mapped-index.h Write the DWARF index in the background 2023-02-24 11:46:53 -07:00
public.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
read-debug-names.c gdb/dwarf2: split .debug_names reading code to own file 2023-02-15 15:12:06 -05:00
read-debug-names.h gdb/dwarf2: split .debug_names reading code to own file 2023-02-15 15:12:06 -05:00
read-gdb-index.c gdb/dwarf2: split .gdb_index reading code to own file 2023-02-15 15:12:01 -05:00
read-gdb-index.h gdb/dwarf2: split .gdb_index reading code to own file 2023-02-15 15:12:01 -05:00
read.c Correctly handle forward DIE references in scanner 2023-05-15 08:49:24 -06:00
read.h gdb, gdbserver, gdbsupport: fix whitespace issues 2023-03-09 16:32:00 -05:00
sect-names.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
section.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
section.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
stringify.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
stringify.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tag.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
types.h gdb: update some copyright years (2022 -> 2023) 2023-03-01 20:54:56 -05:00