[binutils-gdb] [gdb/testsuite] Clean up duplicate .debug_aranges terminators

Tom de Vries via Gdb-cvs <[email protected]> Thu, 21 May 2026 15:19:43 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c69713237efb6aab5a585b76c7082f74230676c9

commit c69713237efb6aab5a585b76c7082f74230676c9
Author: Tom de Vries <[email protected]>
Date:   Thu May 21 17:19:27 2026 +0200

    [gdb/testsuite] Clean up duplicate .debug_aranges terminators
    
    I came across duplicate .debug_aranges terminators:
    ...
            aranges {} cu_start {
                arange {} 0 0
            }
    ...
    
    The dwarf assembler already generates a terminator, so there's no need to
    generate another one.
    
    Remove these.
    
    Approved-By: Tom Tromey <[email protected]>
    
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34157

Diff:
---
 gdb/testsuite/gdb.dwarf2/dwzbuildid.tcl     | 2 --
 gdb/testsuite/gdb.dwarf2/short-build-id.exp | 1 -
 2 files changed, 3 deletions(-)

diff --git a/gdb/testsuite/gdb.dwarf2/dwzbuildid.tcl b/gdb/testsuite/gdb.dwarf2/dwzbuildid.tcl
index feb95f58feb..45a80bd7ce4 100644
--- a/gdb/testsuite/gdb.dwarf2/dwzbuildid.tcl
+++ b/gdb/testsuite/gdb.dwarf2/dwzbuildid.tcl
@@ -57,7 +57,6 @@ proc write_just_debugaltlink {filename dwzname buildid} {
 	    }
 	}
 	aranges {} cu_start {
-	    arange {} 0 0
 	}
     }
 }
@@ -97,7 +96,6 @@ proc write_dwarf_file {filename buildid {value 99}} {
 	}
 
 	aranges {} cu_start {
-	    arange {} 0 0
 	}
     }
 }
diff --git a/gdb/testsuite/gdb.dwarf2/short-build-id.exp b/gdb/testsuite/gdb.dwarf2/short-build-id.exp
index c30b82eb54f..d8a2f351f22 100644
--- a/gdb/testsuite/gdb.dwarf2/short-build-id.exp
+++ b/gdb/testsuite/gdb.dwarf2/short-build-id.exp
@@ -68,7 +68,6 @@ proc run_test { buildid } {
 	}
 
 	aranges {} cu_start {
-	    arange {} 0 0
 	}
     }