~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to gdb/testsuite/gdb.trace/tfind.exp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#   Copyright 1998, 2002, 2005, 2007, 2008, 2009
 
1
#   Copyright 1998, 2002, 2005, 2007, 2008, 2009, 2010
2
2
#   Free Software Foundation, Inc.
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
28
28
gdb_exit
29
29
gdb_start
30
30
 
31
 
if [istarget "m68k-*-elf"] then {
32
 
    load_lib "emc-support.exp";
33
 
    set srcfile gdb_c_test.c
34
 
    set binfile [board_info target d490_binfile];
35
 
    gdb_test "set remotetimeout 6" "" ""
36
 
    set timeout 500
37
 
    gdb_target_monitor $binfile
38
 
    # Give a TSTOP and ignore errors, to make sure any previous trace is off
39
 
    gdb_test "tstop" "" ""
40
 
    gdb_test "tfind none" "" ""
41
 
    send_gdb "compare-sections CS\n"
42
 
    gdb_expect {
43
 
        -re "MIS-MATCHED.*$gdb_prompt $" {
44
 
            untested tfind.exp
45
 
            return -1
46
 
            all tests in this module will fail.";
47
 
        }
48
 
        -re ".*$gdb_prompt $" { }
49
 
    }
50
 
} else {
51
 
    set testfile "actions"
52
 
    set srcfile ${testfile}.c
53
 
    set binfile $objdir/$subdir/tfind
 
31
set testfile "actions"
 
32
set srcfile ${testfile}.c
 
33
set binfile $objdir/$subdir/tfind
54
34
 
55
 
    if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" \
56
 
            executable {debug nowarnings}] != "" } {
57
 
        untested tfind.exp
58
 
        return -1
59
 
    }
60
 
    gdb_load $binfile
61
 
    gdb_test "tstop"       "" ""
62
 
    gdb_test "tfind none"  "" ""
63
 
    runto_main
 
35
if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" \
 
36
          executable {debug nowarnings}] != "" } {
 
37
    untested tfind.exp
 
38
    return -1
64
39
}
 
40
gdb_load $binfile
 
41
gdb_test "tstop"       "" ""
 
42
gdb_test "tfind none"  "" ""
 
43
runto_main
65
44
gdb_reinitialize_dir $srcdir/$subdir
66
45
 
67
46
# We generously give ourselves one "pass" if we successfully 
135
114
# 6.2 test help tstart
136
115
gdb_test "help tstart" "Start trace data collection." "6.2: help tstart"
137
116
 
138
 
if [istarget "m68k-*-elf"] then {
139
 
    gdb_emclaptop_command "85,1,2,3,4,5,6"
140
 
    sleep 5
141
 
    
142
 
    gdb_emclaptop_command "85,7,8,9,A,B,C"
143
 
    sleep 5
144
 
} else {
145
 
    gdb_test "break end" "" ""
146
 
    gdb_test "continue" \
147
 
            "Continuing.*Breakpoint $decimal, end.*" \
148
 
            "run trace experiment"
149
 
}
 
117
gdb_test "break end" "" ""
 
118
gdb_test "continue" \
 
119
    "Continuing.*Breakpoint $decimal, end.*" \
 
120
    "run trace experiment"
150
121
 
151
122
# 7.1 test tstop command
152
123
send_gdb "tstop\n"