[3/4] gdb/testsuite/dwarf: fix abbrev section name when putting type unit in DWO file

Message ID 20250407175247.3312551-4-simon.marchi@polymtl.ca
State New
Headers
Series Fix split DWARF + type unit regression |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Simon Marchi April 7, 2025, 5:52 p.m. UTC
  From: Simon Marchi <simon.marchi@polymtl.ca>

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
---
 gdb/testsuite/lib/dwarf.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index 308ab852bd15..2e343add50eb 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -1652,7 +1652,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