From a2ee3a8fffceb52f0736a7ad84980907a0907d5a Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 24 Nov 2023 15:41:22 +0100 Subject: [gdb/testsuite] Use more %progbits for arm On pinebook I ran into: ... Running gdb.tui/tui-layout-asm-short-prog.exp ... gdb compile failed, gdb.tui/tui-layout-asm-short-prog.S: Assembler messages: gdb.tui/tui-layout-asm-short-prog.S:23: Error: \ junk at end of line, first unrecognized character is `,' ... Fix this by using %progbits instead of @progbits for arm. Approved-by: Luis Machado Tested on x86_64-linux and pinebook. --- gdb/testsuite/gdb.arch/pr25124.S | 2 +- gdb/testsuite/gdb.base/dup-sect.S | 4 + gdb/testsuite/gdb.dwarf2/dup-psym.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S | 8 + gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-basic.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S | 4 + .../gdb.dwarf2/dw2-case-insensitive-debug.S | 8 + gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-compressed.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-const.S | 4 + .../gdb.dwarf2/dw2-cp-infcall-ref-static.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-cu-size.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-entry-value.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-filename.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-icycle.S | 12 + gdb/testsuite/gdb.dwarf2/dw2-inheritance.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-inline-param.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-intercu.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-intermix.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-noloc.S | 4 + .../gdb.dwarf2/dw2-objfile-overlap-inner.S | 4 + .../gdb.dwarf2/dw2-objfile-overlap-outer.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-op-call.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-param-error.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-producer.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-strp.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-unresolved.S | 4 + gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S | 4 + gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S | 4 + gdb/testsuite/gdb.dwarf2/fission-reread.S | 4 + .../gdb.dwarf2/frame-inlined-in-outer-frame.S | 4 + gdb/testsuite/gdb.dwarf2/mac-fileno.S | 4 + gdb/testsuite/gdb.dwarf2/pr11465.S | 4 + gdb/testsuite/gdb.dwarf2/pr13961.S | 4 + gdb/testsuite/gdb.linespec/break-asm-file.exp | 4 +- gdb/testsuite/gdb.linespec/break-asm-file0.S | 238 +++++++++++++++++++ gdb/testsuite/gdb.linespec/break-asm-file0.s | 234 ------------------ gdb/testsuite/gdb.linespec/break-asm-file1.S | 264 +++++++++++++++++++++ gdb/testsuite/gdb.linespec/break-asm-file1.s | 260 -------------------- gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S | 4 + gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S | 4 + 61 files changed, 741 insertions(+), 497 deletions(-) create mode 100644 gdb/testsuite/gdb.linespec/break-asm-file0.S delete mode 100644 gdb/testsuite/gdb.linespec/break-asm-file0.s create mode 100644 gdb/testsuite/gdb.linespec/break-asm-file1.S delete mode 100644 gdb/testsuite/gdb.linespec/break-asm-file1.s (limited to 'gdb') diff --git a/gdb/testsuite/gdb.arch/pr25124.S b/gdb/testsuite/gdb.arch/pr25124.S index a7ed1a0..27b4e68 100644 --- a/gdb/testsuite/gdb.arch/pr25124.S +++ b/gdb/testsuite/gdb.arch/pr25124.S @@ -33,4 +33,4 @@ main: mov r0, #0 bx lr .size main, .-main - .section .note.GNU-stack,"",@progbits + .section .note.GNU-stack,"",%progbits diff --git a/gdb/testsuite/gdb.base/dup-sect.S b/gdb/testsuite/gdb.base/dup-sect.S index e374d57..c51bc91 100644 --- a/gdb/testsuite/gdb.base/dup-sect.S +++ b/gdb/testsuite/gdb.base/dup-sect.S @@ -20,4 +20,8 @@ var1: .byte 1 .section sect2, "a" var2: .byte 2 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dup-psym.S b/gdb/testsuite/gdb.dwarf2/dup-psym.S index ec180e6..4e50c0f 100644 --- a/gdb/testsuite/gdb.dwarf2/dup-psym.S +++ b/gdb/testsuite/gdb.dwarf2/dup-psym.S @@ -197,4 +197,8 @@ func_cu1: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S index f0276ad..e1fccd1 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S @@ -149,4 +149,8 @@ LELTP: .uleb128 0x1 .byte 0x1 LELT: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S index 59dd26c..2ff445e 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S @@ -149,4 +149,8 @@ LELTP: .uleb128 0x1 .byte 0x1 LELT: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S b/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S index 960a97c..d58c8bf 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S @@ -53,4 +53,8 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S index 2c62b61..dc6b866 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S @@ -375,4 +375,8 @@ .section .debug_line .Ldebug_line0: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S b/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S index 8b88ba6..45cd7c4 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S @@ -246,4 +246,8 @@ func_cu2: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S index d90d4e2..192bfac 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S @@ -15,7 +15,11 @@ .section ".other", "x" .global some_func, some_func_end +#ifdef __arm__ + .type some_func, %function +#else .type some_func, @function +#endif nop nop nop @@ -27,4 +31,8 @@ some_func: .size some_func,.-some_func some_func_end: nop +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S b/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S index d7654bb..10ea1ae 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S @@ -71,4 +71,8 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-basic.S b/gdb/testsuite/gdb.dwarf2/dw2-basic.S index 372ab23..7b37162 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-basic.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-basic.S @@ -197,4 +197,8 @@ func_cu1: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S index 39e462b..ffe29d1 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S @@ -154,4 +154,8 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S index 1059ace..84e6ee9 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S @@ -60,7 +60,11 @@ /* The .debug_names-based index support depends on .debug_aranges generated by GCC. (.gdb_index includes a gdb-generated map instead.) */ +#ifdef __arm__ + .section .debug_aranges,"",%progbits +#else .section .debug_aranges,"",@progbits +#endif .4byte .Laranges_end - .Laranges_start // Length of Address Ranges Info .Laranges_start: .2byte 0x2 // DWARF Version @@ -126,4 +130,8 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S b/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S index 8a8ecfc..4d62681 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S @@ -239,4 +239,8 @@ gcc43: .globl gcc43 .uleb128 1 .byte 1 .Lgcc43_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compressed.S b/gdb/testsuite/gdb.dwarf2/dw2-compressed.S index 509fbea..14cf286 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-compressed.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-compressed.S @@ -218,4 +218,8 @@ func_cu1: .byte 0x9c .byte 0x00 .byte 0x92 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-const.S b/gdb/testsuite/gdb.dwarf2/dw2-const.S index dfc882a..ff81c18 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-const.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-const.S @@ -249,4 +249,8 @@ func_cu1: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S index 070f24b..e217c73 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S @@ -113,4 +113,8 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S index 99465e2..b6f8a21 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S @@ -107,4 +107,8 @@ .byte 0x0 /* Terminator .debug_abbrev section. */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S index d0bdce9..e4d13a8 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S @@ -74,4 +74,8 @@ dieb: .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S index 973d502..d4fdb1d 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S @@ -617,4 +617,8 @@ .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S b/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S index 781b87e..f44db05 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S @@ -31,4 +31,8 @@ main_end: .section .debug_abbrev .Ldebug_abbrev0: .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S index d78b7e8..5e08776 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S @@ -106,4 +106,8 @@ var: .4byte 1 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .type some_func, %function +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S index ea8dd09..e4678d8 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S @@ -80,4 +80,8 @@ dieb: .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S b/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S index 82d4549..5fdfeec 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S @@ -102,4 +102,8 @@ loclist: .byte 0x0 .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-filename.S b/gdb/testsuite/gdb.dwarf2/dw2-filename.S index 1cdd94a..a1f0867 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-filename.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-filename.S @@ -51,4 +51,8 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S b/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S index f954c4f..67ba8a4 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S @@ -252,4 +252,8 @@ debug_info_seg3_end: .byte 0x08 /* DW_FORM_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x00 /* End abbrev table. */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S index 8856eb6..e432f62 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S @@ -18,7 +18,11 @@ .text .Ltext0: +#ifdef __arm__ + .type p__top__middle__inside.3062, %function +#else .type p__top__middle__inside.3062, @function +#endif p__top__middle__inside.3062: .LFB4: .file 1 "p.adb" @@ -26,7 +30,11 @@ p__top__middle__inside.3062: .LBE6: .globl p__top +#ifdef __arm__ + .type p__top, %function +#else .type p__top, @function +#endif p__top: .LFB2: .4byte 0 @@ -246,4 +254,8 @@ p__top: .Lline1_begin: .byte 0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S index f837625..1585d8a 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S @@ -96,4 +96,8 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S index 540bbb3..c460ddd 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S @@ -150,4 +150,8 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-intercu.S b/gdb/testsuite/gdb.dwarf2/dw2-intercu.S index a068ba1..2cdc304 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-intercu.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-intercu.S @@ -314,4 +314,8 @@ func_cu1: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-intermix.S b/gdb/testsuite/gdb.dwarf2/dw2-intermix.S index a9a474e..010bdb2 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-intermix.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-intermix.S @@ -198,4 +198,8 @@ func_cu1: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S index aa3ec9d..8a16022 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S @@ -132,4 +132,8 @@ c: .4byte 0 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S index 4169f72..cbc1c87 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S @@ -115,4 +115,8 @@ func2: .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S b/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S index 82236a7..6289c36 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S @@ -121,4 +121,8 @@ die221: .string "GNU Modula-2 0.78 (20100402) grafted onto GCC 4.1.2" .LASF2: .string "" +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-noloc.S b/gdb/testsuite/gdb.dwarf2/dw2-noloc.S index 4b74243..d9e31d3 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-noloc.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-noloc.S @@ -324,4 +324,8 @@ resolvable: .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S index 93abcf6..57c5812 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S @@ -178,4 +178,8 @@ inner: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S index 6031ad2..99ff8c1 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S @@ -209,4 +209,8 @@ outer_after: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-call.S b/gdb/testsuite/gdb.dwarf2/dw2-op-call.S index 2ae7bae..e5bba2c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-op-call.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-op-call.S @@ -166,4 +166,8 @@ loclist: .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S index 0037326..6983f0e 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S @@ -130,4 +130,8 @@ aa551234: .byte 0xaa, 0x55, 0x12, 0x34 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-param-error.S b/gdb/testsuite/gdb.dwarf2/dw2-param-error.S index 3c7ca3c..a8b8155 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-param-error.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-param-error.S @@ -106,4 +106,8 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-producer.S b/gdb/testsuite/gdb.dwarf2/dw2-producer.S index ca63697..30338eb 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-producer.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-producer.S @@ -198,4 +198,8 @@ func_cu1: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S index 1091dbc..3e3502a 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S @@ -149,4 +149,8 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S index f199994..5844ebe 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S @@ -167,4 +167,8 @@ d: .string "sizetype" .LASF1: .string "char" +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S b/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S index d19ee72..c941474 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S @@ -397,4 +397,8 @@ loclist: .byte 1 .Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S index 8ea03b1..6d4a7be 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S @@ -66,4 +66,8 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-strp.S b/gdb/testsuite/gdb.dwarf2/dw2-strp.S index dd4eb4f..e0e27ce 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-strp.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-strp.S @@ -176,4 +176,8 @@ .string "hello world!\n" .Lemptyname: .string "" +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S b/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S index c52852d..2a0a8de 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S @@ -178,4 +178,8 @@ SYMBOL(var): .byte 2 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S b/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S index f2fb3c3..2abb4f7 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S @@ -90,4 +90,8 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S b/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S index d4b4bb6..4678c0f 100644 --- a/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S +++ b/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S @@ -85,4 +85,8 @@ types_start: .byte 0x0 .byte 0x0 .byte 0x0 +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.S b/gdb/testsuite/gdb.dwarf2/fission-reread.S index bdb20e7..6171453 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-reread.S +++ b/gdb/testsuite/gdb.dwarf2/fission-reread.S @@ -460,4 +460,8 @@ SYMBOL(main): .Ldebug_addr0: .4byte .LFB0 /* DW_AT_low_pc */ .4byte SYMBOL(baz) /* DW_AT_location */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S b/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S index 7e5971c..a41b285 100644 --- a/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S +++ b/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S @@ -164,4 +164,8 @@ __start_high_pc: .global __cu_high_pc __cu_high_pc: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/mac-fileno.S b/gdb/testsuite/gdb.dwarf2/mac-fileno.S index 7773040..71401bc 100644 --- a/gdb/testsuite/gdb.dwarf2/mac-fileno.S +++ b/gdb/testsuite/gdb.dwarf2/mac-fileno.S @@ -209,4 +209,8 @@ func_cu1: .uleb128 0x0 /* Included from line number 0 */ .uleb128 0x0 /* Filename we just started (bug: number too small) */ .byte 0x0 /* end of CU's macro information */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/pr11465.S b/gdb/testsuite/gdb.dwarf2/pr11465.S index 5308abe..b974f0e 100644 --- a/gdb/testsuite/gdb.dwarf2/pr11465.S +++ b/gdb/testsuite/gdb.dwarf2/pr11465.S @@ -360,4 +360,8 @@ die149: .uleb128 0x16 /* DW_TAG_variable */ .LASF4: .string "GNU C++ 4.4.2" .ident "GCC: (GNU) 4.4.2" +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.dwarf2/pr13961.S b/gdb/testsuite/gdb.dwarf2/pr13961.S index fc9d7af..4c11625 100644 --- a/gdb/testsuite/gdb.dwarf2/pr13961.S +++ b/gdb/testsuite/gdb.dwarf2/pr13961.S @@ -378,4 +378,8 @@ SYMBOL(main): .LASF3: .string "main" +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.linespec/break-asm-file.exp b/gdb/testsuite/gdb.linespec/break-asm-file.exp index d5694c4..2f95ee4 100644 --- a/gdb/testsuite/gdb.linespec/break-asm-file.exp +++ b/gdb/testsuite/gdb.linespec/break-asm-file.exp @@ -20,8 +20,8 @@ load_lib dwarf.exp standard_testfile .c set execfile $testfile -set asm_file1 break-asm-file1.s -set asm_file0 break-asm-file0.s +set asm_file1 break-asm-file1.S +set asm_file0 break-asm-file0.S # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support diff --git a/gdb/testsuite/gdb.linespec/break-asm-file0.S b/gdb/testsuite/gdb.linespec/break-asm-file0.S new file mode 100644 index 0000000..36dc994 --- /dev/null +++ b/gdb/testsuite/gdb.linespec/break-asm-file0.S @@ -0,0 +1,238 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2004-2023 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + + .file "a/break-asm-file0.S" + .text +.Lbegin_text1: + .globl _func2 +_func2: + .globl func2 + .type func2, %function +func2: +.Lbegin_func2: + nop + nop +.Lend_func2: + .size func2, .-func2 + .globl _func +_func: + .globl func + .type func, %function +func: +.Lbegin_func: + .file 1 "a/break-asm-file0.S" + nop +.Lfunc_1: + nop +.Lfunc_2: + nop +.Lend_func: + .size func, .-func +.Lend_text1: + +/* Debug information */ + + .section .debug_info +.Lcu1_begin: + /* CU header */ + .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ +.Lcu1_start: + .2byte 2 /* DWARF Version */ + .4byte .Labbrev1_begin /* Offset into abbrev section */ + .byte 4 /* Pointer size */ + + /* CU die */ + .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ + .4byte .Lline1_begin /* DW_AT_stmt_list */ + .4byte .Lend_text1 /* DW_AT_high_pc */ + .4byte .Lbegin_text1 /* DW_AT_low_pc */ + .ascii "a/break-asm-file0.S\0" /* DW_AT_name */ + .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ + .2byte 0x8001 /* DW_AT_language (Mips Assembler) */ + + .byte 0 /* End of children of CU */ + +.Lcu1_end: + +/* Abbrev table */ + .section .debug_abbrev +.Labbrev1_begin: + .uleb128 1 /* Abbrev code */ + .uleb128 0x11 /* DW_TAG_compile_unit */ + .byte 1 /* has_children */ + .uleb128 0x10 /* DW_AT_stmt_list */ + .uleb128 0x6 /* DW_FORM_data4 */ + .uleb128 0x12 /* DW_AT_high_pc */ + .uleb128 0x1 /* DW_FORM_addr */ + .uleb128 0x11 /* DW_AT_low_pc */ + .uleb128 0x1 /* DW_FORM_addr */ + .uleb128 0x3 /* DW_AT_name */ + .uleb128 0x8 /* DW_FORM_string */ + .uleb128 0x25 /* DW_AT_producer */ + .uleb128 0x8 /* DW_FORM_string */ + .uleb128 0x13 /* DW_AT_language */ + .uleb128 0x5 /* DW_FORM_data2 */ + .byte 0x0 /* Terminator */ + .byte 0x0 /* Terminator */ + + .uleb128 2 /* Abbrev code */ + .uleb128 0x2e /* DW_TAG_subprogram */ + .byte 0 /* has_children */ + .uleb128 0x3f /* DW_AT_external */ + .uleb128 0xc /* DW_FORM_flag */ + .uleb128 0x3a /* DW_AT_decl_file */ + .uleb128 0xb /* DW_FORM_data1 */ + .uleb128 0x3b /* DW_AT_decl_line */ + .uleb128 0xb /* DW_FORM_data1 */ + .uleb128 0x3 /* DW_AT_name */ + .uleb128 0x8 /* DW_FORM_string */ + .uleb128 0x49 /* DW_AT_type */ + .uleb128 0x13 /* DW_FORM_ref4 */ + .uleb128 0x11 /* DW_AT_low_pc */ + .uleb128 0x1 /* DW_FORM_addr */ + .uleb128 0x12 /* DW_AT_high_pc */ + .uleb128 0x1 /* DW_FORM_addr */ + .uleb128 0x40 /* DW_AT_frame_base */ + .uleb128 0xa /* DW_FORM_block1 */ + .byte 0x0 /* Terminator */ + .byte 0x0 /* Terminator */ + + .uleb128 3 /* Abbrev code */ + .uleb128 0x24 /* DW_TAG_base_type */ + .byte 0 /* has_children */ + .uleb128 0x3 /* DW_AT_name */ + .uleb128 0x8 /* DW_FORM_string */ + .uleb128 0xb /* DW_AT_byte_size */ + .uleb128 0xb /* DW_FORM_data1 */ + .uleb128 0x3e /* DW_AT_encoding */ + .uleb128 0xb /* DW_FORM_data1 */ + .byte 0x0 /* Terminator */ + .byte 0x0 /* Terminator */ + + .byte 0x0 /* Terminator */ + .byte 0x0 /* Terminator */ + +/* Line table */ + .section .debug_line +.Lline1_begin: + .4byte .Lline1_end - .Lline1_start /* Initial length */ +.Lline1_start: + .2byte 2 /* Version */ + .4byte .Lline1_lines - .Lline1_hdr /* header_length */ +.Lline1_hdr: + .byte 1 /* Minimum insn length */ + .byte 1 /* default_is_stmt */ + .byte 1 /* line_base */ + .byte 1 /* line_range */ + .byte 0x10 /* opcode_base */ + + /* Standard lengths */ + .byte 0 + .byte 1 + .byte 1 + .byte 1 + .byte 1 + .byte 0 + .byte 0 + .byte 0 + .byte 1 + .byte 0 + .byte 0 + .byte 1 + .byte 0 + .byte 0 + .byte 0 + + /* Include directories */ + .byte 0 + + /* File names */ + .ascii "a/break-asm-file0.S\0" + .uleb128 0 + .uleb128 0 + .uleb128 0 + + .byte 0 + +.Lline1_lines: + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lbegin_func2 + + .byte 3 /* DW_LNS_advance_line */ + .sleb128 1 /* ... to 2 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lbegin_func2+1 + + .byte 3 /* DW_LNS_advance_line */ + .sleb128 1 /* ... to 3 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lbegin_func + + .byte 3 /* DW_LNS_advance_line */ + .sleb128 4 /* ... to 7 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lfunc_1 + + /* A line number entry for the same line (7) denotes the end */ + /* of prologue. */ + .byte 3 /* DW_LNS_advance_line */ + .sleb128 0 /* ... to 7 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lfunc_2 + + .byte 3 /* DW_LNS_advance_line */ + .sleb128 1 /* ... to 8 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lend_func + + .byte 0 /* DW_LNE_end_of_sequence */ + .uleb128 1 + .byte 1 + +.Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else + .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.linespec/break-asm-file0.s b/gdb/testsuite/gdb.linespec/break-asm-file0.s deleted file mode 100644 index 35a0060..0000000 --- a/gdb/testsuite/gdb.linespec/break-asm-file0.s +++ /dev/null @@ -1,234 +0,0 @@ -/* This testcase is part of GDB, the GNU debugger. - - Copyright 2004-2023 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - - .file "a/break-asm-file0.s" - .text -.Lbegin_text1: - .globl _func2 -_func2: - .globl func2 - .type func2, %function -func2: -.Lbegin_func2: - nop - nop -.Lend_func2: - .size func2, .-func2 - .globl _func -_func: - .globl func - .type func, %function -func: -.Lbegin_func: - .file 1 "a/break-asm-file0.s" - nop -.Lfunc_1: - nop -.Lfunc_2: - nop -.Lend_func: - .size func, .-func -.Lend_text1: - -/* Debug information */ - - .section .debug_info -.Lcu1_begin: - /* CU header */ - .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ -.Lcu1_start: - .2byte 2 /* DWARF Version */ - .4byte .Labbrev1_begin /* Offset into abbrev section */ - .byte 4 /* Pointer size */ - - /* CU die */ - .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ - .4byte .Lline1_begin /* DW_AT_stmt_list */ - .4byte .Lend_text1 /* DW_AT_high_pc */ - .4byte .Lbegin_text1 /* DW_AT_low_pc */ - .ascii "a/break-asm-file0.s\0" /* DW_AT_name */ - .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ - .2byte 0x8001 /* DW_AT_language (Mips Assembler) */ - - .byte 0 /* End of children of CU */ - -.Lcu1_end: - -/* Abbrev table */ - .section .debug_abbrev -.Labbrev1_begin: - .uleb128 1 /* Abbrev code */ - .uleb128 0x11 /* DW_TAG_compile_unit */ - .byte 1 /* has_children */ - .uleb128 0x10 /* DW_AT_stmt_list */ - .uleb128 0x6 /* DW_FORM_data4 */ - .uleb128 0x12 /* DW_AT_high_pc */ - .uleb128 0x1 /* DW_FORM_addr */ - .uleb128 0x11 /* DW_AT_low_pc */ - .uleb128 0x1 /* DW_FORM_addr */ - .uleb128 0x3 /* DW_AT_name */ - .uleb128 0x8 /* DW_FORM_string */ - .uleb128 0x25 /* DW_AT_producer */ - .uleb128 0x8 /* DW_FORM_string */ - .uleb128 0x13 /* DW_AT_language */ - .uleb128 0x5 /* DW_FORM_data2 */ - .byte 0x0 /* Terminator */ - .byte 0x0 /* Terminator */ - - .uleb128 2 /* Abbrev code */ - .uleb128 0x2e /* DW_TAG_subprogram */ - .byte 0 /* has_children */ - .uleb128 0x3f /* DW_AT_external */ - .uleb128 0xc /* DW_FORM_flag */ - .uleb128 0x3a /* DW_AT_decl_file */ - .uleb128 0xb /* DW_FORM_data1 */ - .uleb128 0x3b /* DW_AT_decl_line */ - .uleb128 0xb /* DW_FORM_data1 */ - .uleb128 0x3 /* DW_AT_name */ - .uleb128 0x8 /* DW_FORM_string */ - .uleb128 0x49 /* DW_AT_type */ - .uleb128 0x13 /* DW_FORM_ref4 */ - .uleb128 0x11 /* DW_AT_low_pc */ - .uleb128 0x1 /* DW_FORM_addr */ - .uleb128 0x12 /* DW_AT_high_pc */ - .uleb128 0x1 /* DW_FORM_addr */ - .uleb128 0x40 /* DW_AT_frame_base */ - .uleb128 0xa /* DW_FORM_block1 */ - .byte 0x0 /* Terminator */ - .byte 0x0 /* Terminator */ - - .uleb128 3 /* Abbrev code */ - .uleb128 0x24 /* DW_TAG_base_type */ - .byte 0 /* has_children */ - .uleb128 0x3 /* DW_AT_name */ - .uleb128 0x8 /* DW_FORM_string */ - .uleb128 0xb /* DW_AT_byte_size */ - .uleb128 0xb /* DW_FORM_data1 */ - .uleb128 0x3e /* DW_AT_encoding */ - .uleb128 0xb /* DW_FORM_data1 */ - .byte 0x0 /* Terminator */ - .byte 0x0 /* Terminator */ - - .byte 0x0 /* Terminator */ - .byte 0x0 /* Terminator */ - -/* Line table */ - .section .debug_line -.Lline1_begin: - .4byte .Lline1_end - .Lline1_start /* Initial length */ -.Lline1_start: - .2byte 2 /* Version */ - .4byte .Lline1_lines - .Lline1_hdr /* header_length */ -.Lline1_hdr: - .byte 1 /* Minimum insn length */ - .byte 1 /* default_is_stmt */ - .byte 1 /* line_base */ - .byte 1 /* line_range */ - .byte 0x10 /* opcode_base */ - - /* Standard lengths */ - .byte 0 - .byte 1 - .byte 1 - .byte 1 - .byte 1 - .byte 0 - .byte 0 - .byte 0 - .byte 1 - .byte 0 - .byte 0 - .byte 1 - .byte 0 - .byte 0 - .byte 0 - - /* Include directories */ - .byte 0 - - /* File names */ - .ascii "a/break-asm-file0.s\0" - .uleb128 0 - .uleb128 0 - .uleb128 0 - - .byte 0 - -.Lline1_lines: - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lbegin_func2 - - .byte 3 /* DW_LNS_advance_line */ - .sleb128 1 /* ... to 2 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lbegin_func2+1 - - .byte 3 /* DW_LNS_advance_line */ - .sleb128 1 /* ... to 3 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lbegin_func - - .byte 3 /* DW_LNS_advance_line */ - .sleb128 4 /* ... to 7 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lfunc_1 - - /* A line number entry for the same line (7) denotes the end */ - /* of prologue. */ - .byte 3 /* DW_LNS_advance_line */ - .sleb128 0 /* ... to 7 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lfunc_2 - - .byte 3 /* DW_LNS_advance_line */ - .sleb128 1 /* ... to 8 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lend_func - - .byte 0 /* DW_LNE_end_of_sequence */ - .uleb128 1 - .byte 1 - -.Lline1_end: - .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.linespec/break-asm-file1.S b/gdb/testsuite/gdb.linespec/break-asm-file1.S new file mode 100644 index 0000000..c12545f --- /dev/null +++ b/gdb/testsuite/gdb.linespec/break-asm-file1.S @@ -0,0 +1,264 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2004-2023 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + + .text +.Lbegin_text1: + .globl _func3 +_func3: + .globl func3 + .type func3, %function +func3: +.Lbegin_func3: + nop + nop +.Lend_func3: + .size func3, .-func3 +_func: + .type func, %function +func: +.Lbegin_func: + nop +.Lfunc_1: + nop +.Lfunc_2: + nop +.Lend_func: + .size func, .-func +.Lend_text1: + +/* Debug information */ + + .section .debug_info +.Lcu1_begin: + /* CU header */ + .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ +.Lcu1_start: + .2byte 2 /* DWARF Version */ + .4byte .Labbrev1_begin /* Offset into abbrev section */ + .byte 4 /* Pointer size */ + + /* CU die */ + .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ + .4byte .Lline1_begin /* DW_AT_stmt_list */ + .4byte .Lend_text1 /* DW_AT_high_pc */ + .4byte .Lbegin_text1 /* DW_AT_low_pc */ + .ascii "b/break-asm-file0.S\0" /* DW_AT_name */ + .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ + .2byte 0x8001 /* DW_AT_language (Mips Assembler) */ + + /* func3 */ + .uleb128 2 /* Abbrev: DW_TAG_subprogram */ + .byte 1 /* DW_AT_external */ + .byte 1 /* DW_AT_decl_file */ + .byte 2 /* DW_AT_decl_line */ + .ascii "func3\0" /* DW_AT_name */ + .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ + .4byte .Lbegin_func3 /* DW_AT_low_pc */ + .4byte .Lend_func3 /* DW_AT_high_pc */ + .byte 1 /* DW_AT_frame_base: length */ + .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ + + /* func */ + .uleb128 2 /* Abbrev: DW_TAG_subprogram */ + .byte 0 /* DW_AT_external */ + .byte 1 /* DW_AT_decl_file */ + .byte 4 /* DW_AT_decl_line */ + .ascii "func\0" /* DW_AT_name */ + .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ + .4byte .Lbegin_func /* DW_AT_low_pc */ + .4byte .Lend_func /* DW_AT_high_pc */ + .byte 1 /* DW_AT_frame_base: length */ + .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ + +.Ltype_int: + .uleb128 3 /* Abbrev: DW_TAG_base_type */ + .ascii "int\0" /* DW_AT_name */ + .byte 4 /* DW_AT_byte_size */ + .byte 5 /* DW_AT_encoding */ + + .byte 0 /* End of children of CU */ + +.Lcu1_end: + +/* Abbrev table */ + .section .debug_abbrev +.Labbrev1_begin: + .uleb128 1 /* Abbrev code */ + .uleb128 0x11 /* DW_TAG_compile_unit */ + .byte 1 /* has_children */ + .uleb128 0x10 /* DW_AT_stmt_list */ + .uleb128 0x6 /* DW_FORM_data4 */ + .uleb128 0x12 /* DW_AT_high_pc */ + .uleb128 0x1 /* DW_FORM_addr */ + .uleb128 0x11 /* DW_AT_low_pc */ + .uleb128 0x1 /* DW_FORM_addr */ + .uleb128 0x3 /* DW_AT_name */ + .uleb128 0x8 /* DW_FORM_string */ + .uleb128 0x25 /* DW_AT_producer */ + .uleb128 0x8 /* DW_FORM_string */ + .uleb128 0x13 /* DW_AT_language */ + .uleb128 0x5 /* DW_FORM_data2 */ + .byte 0x0 /* Terminator */ + .byte 0x0 /* Terminator */ + + .uleb128 2 /* Abbrev code */ + .uleb128 0x2e /* DW_TAG_subprogram */ + .byte 0 /* has_children */ + .uleb128 0x3f /* DW_AT_external */ + .uleb128 0xc /* DW_FORM_flag */ + .uleb128 0x3a /* DW_AT_decl_file */ + .uleb128 0xb /* DW_FORM_data1 */ + .uleb128 0x3b /* DW_AT_decl_line */ + .uleb128 0xb /* DW_FORM_data1 */ + .uleb128 0x3 /* DW_AT_name */ + .uleb128 0x8 /* DW_FORM_string */ + .uleb128 0x49 /* DW_AT_type */ + .uleb128 0x13 /* DW_FORM_ref4 */ + .uleb128 0x11 /* DW_AT_low_pc */ + .uleb128 0x1 /* DW_FORM_addr */ + .uleb128 0x12 /* DW_AT_high_pc */ + .uleb128 0x1 /* DW_FORM_addr */ + .uleb128 0x40 /* DW_AT_frame_base */ + .uleb128 0xa /* DW_FORM_block1 */ + .byte 0x0 /* Terminator */ + .byte 0x0 /* Terminator */ + + .uleb128 3 /* Abbrev code */ + .uleb128 0x24 /* DW_TAG_base_type */ + .byte 0 /* has_children */ + .uleb128 0x3 /* DW_AT_name */ + .uleb128 0x8 /* DW_FORM_string */ + .uleb128 0xb /* DW_AT_byte_size */ + .uleb128 0xb /* DW_FORM_data1 */ + .uleb128 0x3e /* DW_AT_encoding */ + .uleb128 0xb /* DW_FORM_data1 */ + .byte 0x0 /* Terminator */ + .byte 0x0 /* Terminator */ + + .byte 0x0 /* Terminator */ + .byte 0x0 /* Terminator */ + +/* Line table */ + .section .debug_line +.Lline1_begin: + .4byte .Lline1_end - .Lline1_start /* Initial length */ +.Lline1_start: + .2byte 2 /* Version */ + .4byte .Lline1_lines - .Lline1_hdr /* header_length */ +.Lline1_hdr: + .byte 1 /* Minimum insn length */ + .byte 1 /* default_is_stmt */ + .byte 1 /* line_base */ + .byte 1 /* line_range */ + .byte 0x10 /* opcode_base */ + + /* Standard lengths */ + .byte 0 + .byte 1 + .byte 1 + .byte 1 + .byte 1 + .byte 0 + .byte 0 + .byte 0 + .byte 1 + .byte 0 + .byte 0 + .byte 1 + .byte 0 + .byte 0 + .byte 0 + + /* Include directories */ + .byte 0 + + /* File names */ + .ascii "b/break-asm-file0.S\0" + .uleb128 0 + .uleb128 0 + .uleb128 0 + + .byte 0 + +.Lline1_lines: + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lbegin_func3 + + .byte 3 /* DW_LNS_advance_line */ + .sleb128 1 /* ... to 2 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lbegin_func3+1 + + .byte 3 /* DW_LNS_advance_line */ + .sleb128 1 /* ... to 3 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lbegin_func + + .byte 3 /* DW_LNS_advance_line */ + .sleb128 4 /* ... to 7 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lfunc_1 + + /* A line number entry for the same line (7) denotes the end */ + /* of prologue. */ + .byte 3 /* DW_LNS_advance_line */ + .sleb128 0 /* ... to 7 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lfunc_2 + + .byte 3 /* DW_LNS_advance_line */ + .sleb128 1 /* ... to 8 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lend_func + + .byte 0 /* DW_LNE_end_of_sequence */ + .uleb128 1 + .byte 1 + +.Lline1_end: +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else + .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.linespec/break-asm-file1.s b/gdb/testsuite/gdb.linespec/break-asm-file1.s deleted file mode 100644 index c3fcc41..0000000 --- a/gdb/testsuite/gdb.linespec/break-asm-file1.s +++ /dev/null @@ -1,260 +0,0 @@ -/* This testcase is part of GDB, the GNU debugger. - - Copyright 2004-2023 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - - .text -.Lbegin_text1: - .globl _func3 -_func3: - .globl func3 - .type func3, %function -func3: -.Lbegin_func3: - nop - nop -.Lend_func3: - .size func3, .-func3 -_func: - .type func, %function -func: -.Lbegin_func: - nop -.Lfunc_1: - nop -.Lfunc_2: - nop -.Lend_func: - .size func, .-func -.Lend_text1: - -/* Debug information */ - - .section .debug_info -.Lcu1_begin: - /* CU header */ - .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ -.Lcu1_start: - .2byte 2 /* DWARF Version */ - .4byte .Labbrev1_begin /* Offset into abbrev section */ - .byte 4 /* Pointer size */ - - /* CU die */ - .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ - .4byte .Lline1_begin /* DW_AT_stmt_list */ - .4byte .Lend_text1 /* DW_AT_high_pc */ - .4byte .Lbegin_text1 /* DW_AT_low_pc */ - .ascii "b/break-asm-file0.s\0" /* DW_AT_name */ - .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ - .2byte 0x8001 /* DW_AT_language (Mips Assembler) */ - - /* func3 */ - .uleb128 2 /* Abbrev: DW_TAG_subprogram */ - .byte 1 /* DW_AT_external */ - .byte 1 /* DW_AT_decl_file */ - .byte 2 /* DW_AT_decl_line */ - .ascii "func3\0" /* DW_AT_name */ - .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ - .4byte .Lbegin_func3 /* DW_AT_low_pc */ - .4byte .Lend_func3 /* DW_AT_high_pc */ - .byte 1 /* DW_AT_frame_base: length */ - .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ - - /* func */ - .uleb128 2 /* Abbrev: DW_TAG_subprogram */ - .byte 0 /* DW_AT_external */ - .byte 1 /* DW_AT_decl_file */ - .byte 4 /* DW_AT_decl_line */ - .ascii "func\0" /* DW_AT_name */ - .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ - .4byte .Lbegin_func /* DW_AT_low_pc */ - .4byte .Lend_func /* DW_AT_high_pc */ - .byte 1 /* DW_AT_frame_base: length */ - .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ - -.Ltype_int: - .uleb128 3 /* Abbrev: DW_TAG_base_type */ - .ascii "int\0" /* DW_AT_name */ - .byte 4 /* DW_AT_byte_size */ - .byte 5 /* DW_AT_encoding */ - - .byte 0 /* End of children of CU */ - -.Lcu1_end: - -/* Abbrev table */ - .section .debug_abbrev -.Labbrev1_begin: - .uleb128 1 /* Abbrev code */ - .uleb128 0x11 /* DW_TAG_compile_unit */ - .byte 1 /* has_children */ - .uleb128 0x10 /* DW_AT_stmt_list */ - .uleb128 0x6 /* DW_FORM_data4 */ - .uleb128 0x12 /* DW_AT_high_pc */ - .uleb128 0x1 /* DW_FORM_addr */ - .uleb128 0x11 /* DW_AT_low_pc */ - .uleb128 0x1 /* DW_FORM_addr */ - .uleb128 0x3 /* DW_AT_name */ - .uleb128 0x8 /* DW_FORM_string */ - .uleb128 0x25 /* DW_AT_producer */ - .uleb128 0x8 /* DW_FORM_string */ - .uleb128 0x13 /* DW_AT_language */ - .uleb128 0x5 /* DW_FORM_data2 */ - .byte 0x0 /* Terminator */ - .byte 0x0 /* Terminator */ - - .uleb128 2 /* Abbrev code */ - .uleb128 0x2e /* DW_TAG_subprogram */ - .byte 0 /* has_children */ - .uleb128 0x3f /* DW_AT_external */ - .uleb128 0xc /* DW_FORM_flag */ - .uleb128 0x3a /* DW_AT_decl_file */ - .uleb128 0xb /* DW_FORM_data1 */ - .uleb128 0x3b /* DW_AT_decl_line */ - .uleb128 0xb /* DW_FORM_data1 */ - .uleb128 0x3 /* DW_AT_name */ - .uleb128 0x8 /* DW_FORM_string */ - .uleb128 0x49 /* DW_AT_type */ - .uleb128 0x13 /* DW_FORM_ref4 */ - .uleb128 0x11 /* DW_AT_low_pc */ - .uleb128 0x1 /* DW_FORM_addr */ - .uleb128 0x12 /* DW_AT_high_pc */ - .uleb128 0x1 /* DW_FORM_addr */ - .uleb128 0x40 /* DW_AT_frame_base */ - .uleb128 0xa /* DW_FORM_block1 */ - .byte 0x0 /* Terminator */ - .byte 0x0 /* Terminator */ - - .uleb128 3 /* Abbrev code */ - .uleb128 0x24 /* DW_TAG_base_type */ - .byte 0 /* has_children */ - .uleb128 0x3 /* DW_AT_name */ - .uleb128 0x8 /* DW_FORM_string */ - .uleb128 0xb /* DW_AT_byte_size */ - .uleb128 0xb /* DW_FORM_data1 */ - .uleb128 0x3e /* DW_AT_encoding */ - .uleb128 0xb /* DW_FORM_data1 */ - .byte 0x0 /* Terminator */ - .byte 0x0 /* Terminator */ - - .byte 0x0 /* Terminator */ - .byte 0x0 /* Terminator */ - -/* Line table */ - .section .debug_line -.Lline1_begin: - .4byte .Lline1_end - .Lline1_start /* Initial length */ -.Lline1_start: - .2byte 2 /* Version */ - .4byte .Lline1_lines - .Lline1_hdr /* header_length */ -.Lline1_hdr: - .byte 1 /* Minimum insn length */ - .byte 1 /* default_is_stmt */ - .byte 1 /* line_base */ - .byte 1 /* line_range */ - .byte 0x10 /* opcode_base */ - - /* Standard lengths */ - .byte 0 - .byte 1 - .byte 1 - .byte 1 - .byte 1 - .byte 0 - .byte 0 - .byte 0 - .byte 1 - .byte 0 - .byte 0 - .byte 1 - .byte 0 - .byte 0 - .byte 0 - - /* Include directories */ - .byte 0 - - /* File names */ - .ascii "b/break-asm-file0.s\0" - .uleb128 0 - .uleb128 0 - .uleb128 0 - - .byte 0 - -.Lline1_lines: - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lbegin_func3 - - .byte 3 /* DW_LNS_advance_line */ - .sleb128 1 /* ... to 2 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lbegin_func3+1 - - .byte 3 /* DW_LNS_advance_line */ - .sleb128 1 /* ... to 3 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lbegin_func - - .byte 3 /* DW_LNS_advance_line */ - .sleb128 4 /* ... to 7 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lfunc_1 - - /* A line number entry for the same line (7) denotes the end */ - /* of prologue. */ - .byte 3 /* DW_LNS_advance_line */ - .sleb128 0 /* ... to 7 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lfunc_2 - - .byte 3 /* DW_LNS_advance_line */ - .sleb128 1 /* ... to 8 */ - - .byte 1 /* DW_LNS_copy */ - - .byte 0 /* DW_LNE_set_address */ - .uleb128 5 - .byte 2 - .4byte .Lend_func - - .byte 0 /* DW_LNE_end_of_sequence */ - .uleb128 1 - .byte 1 - -.Lline1_end: - .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S index 684b9d9..e37b04a 100644 --- a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S +++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S @@ -163,4 +163,8 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif diff --git a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S index d577804..461e322 100644 --- a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S +++ b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S @@ -20,4 +20,8 @@ _start: .rept 5 nop .endr +#ifdef __arm__ + .section .note.GNU-stack,"",%progbits +#else .section .note.GNU-stack,"",@progbits +#endif -- cgit v1.1