summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.asm/asmsrc1.s
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.asm/asmsrc1.s')
-rw-r--r--gdb/testsuite/gdb.asm/asmsrc1.s21
1 files changed, 16 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.asm/asmsrc1.s b/gdb/testsuite/gdb.asm/asmsrc1.s
index be1028064a9..0e133d22df4 100644
--- a/gdb/testsuite/gdb.asm/asmsrc1.s
+++ b/gdb/testsuite/gdb.asm/asmsrc1.s
@@ -1,13 +1,24 @@
.include "common.inc"
.include "arch.inc"
+comment "WARNING: asm-source.exp checks for line numbers printed by gdb."
+comment "Be careful about changing this file without also changing"
+comment "asm-source.exp."
+
+
+comment "This file is not linked with crt0."
+comment "Provide very simplistic equivalent."
+
+ .global _start
+_start:
+ startup
+ call main
+ exit0
+
+
comment "main routine for assembly source debugging test"
comment "This particular testcase uses macros in <arch>.inc to achieve"
-comment "machine independence. This file must be compiled with -Darch=foo."
-
-comment "WARNING: asm-source.exp checks for line numbers printed by gdb,"
-comment "therefore be careful about changing this file without also changing"
-comment "asm-source.exp."
+comment "machine independence."
.global main
main: