]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite/dwarf: fix abbrev section name when putting type unit in DWO file
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 7 Apr 2025 17:52:00 +0000 (13:52 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 8 Apr 2025 18:04:10 +0000 (14:04 -0400)
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 <tom@tromey.com>
gdb/testsuite/lib/dwarf.exp

index 0a657f6f31923e38c54b499896b333f6d5c3c09d..f765bca0fa24bf66f66e8e5b55fb355ad93bfe53 100644 (file)
@@ -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