diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2005-11-11 11:18:53 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2005-11-11 11:18:53 +0000 |
commit | c3d0b56edf3b62b6ba6e9cc5ee31baaa80e956eb (patch) | |
tree | 82c4a30f99f3a8b5ba05001e0c75600b00803ac1 /gdb/testsuite/gdb.asm/asm-source.exp | |
parent | 5e2b0d475efa4aa40e098f49074f3c2afd854f48 (diff) | |
download | gdb-c3d0b56edf3b62b6ba6e9cc5ee31baaa80e956eb.zip gdb-c3d0b56edf3b62b6ba6e9cc5ee31baaa80e956eb.tar.gz gdb-c3d0b56edf3b62b6ba6e9cc5ee31baaa80e956eb.tar.bz2 |
* gdb.asm/m68hc11.inc: Setup the data section.
* gdb.asm/asm-source.exp (m6811-*-*): Don't use the target board linker
script for this test.
(m6812-*-*): Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.asm/asm-source.exp')
-rw-r--r-- | gdb/testsuite/gdb.asm/asm-source.exp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index 5abe8ee..ced0af7 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -80,11 +80,25 @@ switch -glob -- [istarget] { } "m6811-*-*" { set asm-arch m68hc11 - set asm-flags "-mshort-double -m68hc11 -gdwarf-2 --no-warn -I${srcdir}/${subdir} -I${objdir}/${subdir}" + set asm-flags "-mshort-double -m68hc11 --no-warn -I${srcdir}/${subdir} -I${objdir}/${subdir}" + set debug-flags "-gdwarf-2" + # This asm test is specific and uses the linker directly. + # We must not use the target board linker script defined for other + # tests. Remove it and restore it later on. + set board [target_info name] + set old_ldscript [board_info $board ldscript] + unset_board_info "ldscript" } "m6812-*-*" { set asm-arch m68hc11 - set asm-flags "-mshort-double -m68hc12 -gdwarf-2 --no-warn -I${srcdir}/${subdir} -I${objdir}/${subdir}" + set asm-flags "-mshort-double -m68hc12 --no-warn -I${srcdir}/${subdir} -I${objdir}/${subdir}" + set debug-flags "-gdwarf-2" + # This asm test is specific and uses the linker directly. + # We must not use the target board linker script defined for other + # tests. Remove it and restore it later on. + set board [target_info name] + set old_ldscript [board_info $board ldscript] + set_board_info ldscript "" } "mips*-*" { set asm-arch mips @@ -226,6 +240,11 @@ if {[target_link "asmsrc1.o asmsrc2.o" "${binfile}" ${link-flags}] != "" } then gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } +# Restore the target board linker script for HC11/HC12. +if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } { + set_board_info ldscript $old_ldscript +} + remote_exec build "mv asmsrc1.o asmsrc2.o ${objdir}/${subdir}" |