[binutils-gdb] [gdb/testsuite] Remove invalid .debug_line section in gdb.dwarf2/dw2-icycle.exp

Tom de Vries via Gdb-cvs <[email protected]> Sat, 23 May 2026 08:17:02 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=edce38bb58e76eb5a636aeba8adaed6998c33591

commit edce38bb58e76eb5a636aeba8adaed6998c33591
Author: Tom de Vries <[email protected]>
Date:   Sat May 23 10:16:57 2026 +0200

    [gdb/testsuite] Remove invalid .debug_line section in gdb.dwarf2/dw2-icycle.exp
    
    Test-case source gdb.dwarf2/dw2-icycle.S contains an invalid .debug_line
    section contribution, causing a readelf -w warning.
    
    It's also unused, so fix the warning by removing it.
    
    Approved-By: Tom Tromey <[email protected]>
    
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34157

Diff:
---
 gdb/testsuite/gdb.dwarf2/dw2-icycle.S | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
index 3e79c966aef..4bd67a4cb7d 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
@@ -250,10 +250,6 @@ p__top:
 	.byte	0
 	.byte	0
 
-        .section .debug_line
-.Lline1_begin:
-        .byte   0
-
 #ifdef __arm__
 	.section	.note.GNU-stack,"",%progbits
 #else