aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.asm/asm-source.exp
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-11-29 13:55:17 +0000
committerMark Kettenis <kettenis@gnu.org>2003-11-29 13:55:17 +0000
commit71507b56179e4e03964d81b3cd0fd6751d645a69 (patch)
tree7b928ac4958630b53fddb8a57961eda05b5e216a /gdb/testsuite/gdb.asm/asm-source.exp
parentf81f93f75ea7b6775234f51faab021a73a1ff80b (diff)
downloadgdb-71507b56179e4e03964d81b3cd0fd6751d645a69.zip
gdb-71507b56179e4e03964d81b3cd0fd6751d645a69.tar.gz
gdb-71507b56179e4e03964d81b3cd0fd6751d645a69.tar.bz2
* gdb.asm/asm-source.exp: Initialize asm-note to "empty". Set
asm-note to "netbsd" for *-*-netbsdelf* and x86_64-*-netbsd*. Use it to create the appropriate note.inc. * gdb.asm/asmsrc1.s: Include "note.inc". * gdb.asm/netbsd.inc: New file. * gdb.asm/empty.inc: New file.
Diffstat (limited to 'gdb/testsuite/gdb.asm/asm-source.exp')
-rw-r--r--gdb/testsuite/gdb.asm/asm-source.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index d07fc7d..648c77a 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -32,6 +32,7 @@ set prms_id 0
set bug_id 0
set asm-arch ""
+set asm-note "empty"
set asm-flags ""
set link-flags "--entry _start"
@@ -124,6 +125,12 @@ if {[istarget "*-*-freebsd*"] || [istarget "*-*-netbsd*"]} then {
append link-flags " -static"
}
+# On NetBSD/ELF we need a special NetBSD-identifying note section.
+if { [istarget "*-*-netbsdelf*"]
+ || [istarget "x86_64-*-netbsd*"] } then {
+ set asm-note "netbsd"
+}
+
# Watch out, we are invoking the assembler, but the testsuite sets multilib
# switches according to compiler syntax. If we pass these options straight
# to the assembler, they won't always make sense. If we don't pass them to
@@ -146,6 +153,8 @@ set srcfile2 asmsrc2.s
remote_exec build "rm -f ${subdir}/arch.inc"
remote_download host ${srcdir}/${subdir}/${asm-arch}.inc ${subdir}/arch.inc
+remote_exec build "rm -f ${subdir}/note.inc"
+remote_download host ${srcdir}/${subdir}/${asm-note}.inc ${subdir}/note.inc
if { "${asm-flags}" == "" } {
#set asm-flags "-Wa,-gstabs,-I${srcdir}/${subdir},-I${objdir}/${subdir}"
@@ -359,3 +368,4 @@ gdb_test "disassem foostatic" ".*<foostatic\\+0>:.*End of assembler dump." \
"look at static function"
remote_exec build "rm -f ${subdir}/arch.inc"
+remote_exec build "rm -f ${subdir}/note.inc"