Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: gdb/testsuite/gdb.trace/disconnected-tracing.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.trace/disconnected-tracing.c ('k') | gdb/testsuite/gdb.trace/ftrace.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2012 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 3 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, see <http://www.gnu.org/licenses/>.
15
16 # Test of disconnected-tracing.
17
18 load_lib "trace-support.exp";
19
20 standard_testfile
21 set executable $testfile
22 set expfile $testfile.exp
23 set gdbserver_reconnect_p 1
24
25 if { [info proc gdb_reconnect] == "" } {
26 unsupported "target does not support reconnect"
27 return -1
28 }
29
30 if [prepare_for_testing $expfile $executable $srcfile \
31 {debug nowarnings}] {
32 untested "failed to prepare for trace tests"
33 return -1
34 }
35
36 if ![runto_main] {
37 fail "can't run to main to check for trace support"
38 return -1
39 }
40
41 if ![gdb_target_supports_trace] {
42 unsupported "target does not support trace"
43 return -1;
44 }
45
46 delete_breakpoints
47 gdb_test_no_output "set confirm off"
48 gdb_test_no_output "set disconnected-tracing on"
49 gdb_test "trace main" ".*"
50 gdb_test_no_output "tstart"
51
52 gdb_test "info tracepoints" ".*in main at.*" "first info tracepoints"
53
54 gdb_test "disconnect" "Ending remote debugging\\." "first disconnect"
55 if { [gdb_reconnect] == 0 } {
56 pass "first reconnect after unload"
57 } else {
58 fail "first reconnect after unload"
59 return 0
60 }
61 gdb_test "info tracepoints" ".*in main at.*" "second info tracepoints"
62
63 delete_breakpoints
64 gdb_test "info tracepoints" ".*No tracepoints..*" "third info tracepoints"
65
66 gdb_test "disconnect" "Ending remote debugging\\." "second disconnect"
67 if { [gdb_reconnect] == 0 } {
68 pass "second reconnect after unload"
69 } else {
70 fail "second reconnect after unload"
71 return 0
72 }
73 gdb_test "info tracepoints" ".*in main at.*" "fourth info tracepoints"
74
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.trace/disconnected-tracing.c ('k') | gdb/testsuite/gdb.trace/ftrace.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698