From: Simon Marchi Date: Mon, 7 Apr 2025 17:52:00 +0000 (-0400) Subject: gdb/testsuite/dwarf: fix abbrev section name when putting type unit in DWO file X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b188a3fb13c00d93163254df19292612e76a6cd;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite/dwarf: fix abbrev section name when putting type unit in DWO file Fix what looks like a copy paste error resulting in the wrong abbrev section name. The resulting section name in my test was ".debug_info.dwo.dwo", when it should have been ".debug_abbrev.dwo". Change-Id: I82166d8ac6eaf3c3abc15d2d2949d00c31fe79f4 Approved-By: Tom Tromey --- diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index 0a657f6f319..f765bca0fa2 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -1649,7 +1649,7 @@ namespace eval Dwarf { } if { $_cu_is_fission } { set section "$section.dwo" - set _abbrev_section "$section.dwo" + set _abbrev_section "$_abbrev_section.dwo" } _section $section