Index: gdb/testsuite/gdb.server/ext-attach.exp |
diff --git a/gdb/testsuite/gdb.server/ext-attach.exp b/gdb/testsuite/gdb.server/ext-attach.exp |
index c5aec84d20166fb58ac47440400e00ed5c20c014..61f93c132fe9a6f8ff402a02d997708efa39eb61 100644 |
--- a/gdb/testsuite/gdb.server/ext-attach.exp |
+++ b/gdb/testsuite/gdb.server/ext-attach.exp |
@@ -1,6 +1,6 @@ |
# This testcase is part of GDB, the GNU debugger. |
-# Copyright 2007, 2009-2012 Free Software Foundation, Inc. |
+# Copyright 2007-2013 Free Software Foundation, Inc. |
# This program is free software; you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
@@ -18,6 +18,7 @@ |
# Test attaching to already-running programs using extended-remote. |
load_lib gdbserver-support.exp |
+load_lib trace-support.exp |
standard_testfile |
@@ -56,6 +57,15 @@ if { [istarget "*-*-cygwin*"] } { |
gdb_test "attach $testpid" \ |
"Attaching to program: .*, process $testpid.*(in|at).*" \ |
"attach to remote program 1" |
+ |
+if { [gdb_target_supports_trace] } then { |
+ # Test predefined TSVs are uploaded. |
+ gdb_test_sequence "info tvariables" "check uploaded tsv" { |
+ "\[\r\n\]+Name\[\t \]+Initial\[\t \]+Current" |
+ "\[\r\n\]+\\\$trace_timestamp 0" |
+ } |
+} |
+ |
gdb_test "backtrace" ".*main.*" "backtrace 1" |
gdb_test "detach" "Detaching from program.*process.*" |