* [binutils-gdb] ignore DWARF debug information for -gsplit-dwarf with dwarf-5
@ 2022-10-04 7:41 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2022-10-04 7:41 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=09fbd1cf93bac1fe02860184f0a0bceedb40ff33
commit 09fbd1cf93bac1fe02860184f0a0bceedb40ff33
Author: Potharla, Rupesh <Rupesh.Potharla@amd.com>
Date: Tue Oct 4 09:39:53 2022 +0200
ignore DWARF debug information for -gsplit-dwarf with dwarf-5
Skip dwo_id for split dwarf.
* dwarf2.c (parse_comp_unit): Skip DWO_id for DW_UT_skeleton.
Diff:
---
bfd/dwarf2.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 4a6a1e40185..364cc9a6480 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -4411,13 +4411,23 @@ parse_comp_unit (struct dwarf2_debug *stash,
if (version < 5)
addr_size = read_1_byte (abfd, &info_ptr, end_ptr);
- if (unit_type == DW_UT_type)
+ switch (unit_type)
{
+ case DW_UT_type:
/* Skip type signature. */
info_ptr += 8;
/* Skip type offset. */
info_ptr += offset_size;
+ break;
+
+ case DW_UT_skeleton:
+ /* Skip DWO_id field. */
+ info_ptr += 8;
+ break;
+
+ default:
+ break;
}
if (addr_size > sizeof (bfd_vma))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-04 7:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 7:41 [binutils-gdb] ignore DWARF debug information for -gsplit-dwarf with dwarf-5 Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).