Add DW_TAG_compile_unit DIE to Dummy CUs
commit41d5ff24c6723b87ada11c1287f50cb87f7d89e2
authorWill Hawkins <hawkinsw@obs.cr>
Thu, 18 Apr 2024 11:28:52 +0000 (18 13:28 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 18 Apr 2024 11:28:52 +0000 (18 13:28 +0200)
tree2a61addc2b7459d241ad901a235217221187ad00
parentebf18671351d94185823d364b75369abc1baba31
Add DW_TAG_compile_unit DIE to Dummy CUs

Dummy CUs help detect errors and are very helpful. However, the DWARF
spec seems to indicate the CUs need a DW_TAG_compile_unit in addition to
the header. This patch adds that.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31650

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
Approved-By: Tom de Vries <tdevries@suse.de>
Tested-By: Tom de Vries <tdevries@suse.de>
gdb/testsuite/lib/dwarf.exp