]> Git Repo - binutils.git/blob - gdb/testsuite/gdb.asm/asm-source.exp
snapshot
[binutils.git] / gdb / testsuite / gdb.asm / asm-source.exp
1 #   Copyright (C) 1998 Free Software Foundation, Inc.
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
16
17 # Please email any bugs, comments, and/or additions to this file to:
18[email protected]
19 #
20 # This file was written by Kendra.
21
22 if $tracelevel then {
23     strace $tracelevel
24 }
25
26 #
27 # test debugging assembly level programs
28 #
29
30 set prms_id 0
31 set bug_id 0
32
33 if [istarget "d10v-*-*"] then {
34     ;# nothing to do, yet
35 } else {
36     verbose "Skipping assembly source test -- not implemented for this target."
37     return 
38 }
39
40 set testfile "asm-source"
41 set binfile ${objdir}/${subdir}/${testfile}
42 set src1 ${srcdir}/${subdir}/asmsrc1.s
43 set src2 ${srcdir}/${subdir}/asmsrc2.s
44
45 if {[gdb_compile ${src1} asmsrc1.o object "additional_flags=-Wa,-gstabs"] != ""} then {
46      gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
47 }
48 if {[gdb_compile ${src2} asmsrc2.o object "additional_flags=-Wa,-gstabs"] != ""} then {
49      gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
50 }
51
52 if  { [gdb_compile "asmsrc1.o asmsrc2.o" ${binfile} executable "ldflags=-nostdlib"] != "" } {
53      gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
54 }
55
56 remote_exec build "mv asmsrc1.o asmsrc2.o ${objdir}/${subdir}"
57
58
59 gdb_start
60 gdb_reinitialize_dir $srcdir/$subdir
61 gdb_load ${binfile}
62
63 #
64 # set it up at a breakpoint so we can play with the variable values
65 #
66
67 if ![runto_main] then {
68     gdb_suppress_tests;
69 }
70
71 gdb_test "f" "asmsrc1\[.\]s:40.*several_nops"
This page took 0.027996 seconds and 4 git commands to generate.