1
# Copyright 1998, 2007, 2008, 2009 Free Software Foundation, Inc.
1
# Copyright 1998, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
30
if [istarget "m68k-*-elf"] then {
31
load_lib "emc-support.exp";
32
set srcfile gdb_c_test.c
33
set binfile [board_info target d490_binfile];
34
gdb_test "set remotetimeout 6" "" ""
36
gdb_target_monitor $binfile
37
# Give a TSTOP and ignore errors, to make sure any previous trace is off
38
gdb_test "tstop" "" ""
39
gdb_test "tfind none" "" ""
40
send_gdb "compare-sections CS\n"
42
-re "MIS-MATCHED.*$gdb_prompt $" {
45
all tests in this module will fail.";
47
-re ".*$gdb_prompt $" { }
50
set testfile "actions"
51
set srcfile ${testfile}.c
52
set binfile $objdir/$subdir/report
53
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
54
executable {debug nowarnings}] != "" } {
59
gdb_test "tstop" "" ""
60
gdb_test "tfind none" "" ""
30
set testfile "actions"
31
set srcfile ${testfile}.c
32
set binfile $objdir/$subdir/report
33
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
34
executable {debug nowarnings}] != "" } {
39
gdb_test "tstop" "" ""
40
gdb_test "tfind none" "" ""
63
42
gdb_reinitialize_dir $srcdir/$subdir
65
44
# We generously give ourselves one "pass" if we successfully
187
166
gdb_test "tstart" "" ""
189
if [istarget "m68k-*-elf"] then {
190
gdb_emclaptop_command "85,$arg1,$arg2,$arg3,$arg4,$arg5,$arg6"
194
gdb_test "break end" "" ""
195
gdb_test "continue" \
196
"Continuing.*Breakpoint $decimal, end.*" \
197
"run trace experiment"
168
gdb_test "break end" "" ""
169
gdb_test "continue" \
170
"Continuing.*Breakpoint $decimal, end.*" \
171
"run trace experiment"
200
173
gdb_test "tstop" "" ""