]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
authorHafiz Abid Qadeer <abidh@codesourcery.com>
Fri, 3 May 2013 16:26:32 +0000 (16:26 +0000)
committerHafiz Abid Qadeer <abidh@codesourcery.com>
Fri, 3 May 2013 16:26:32 +0000 (16:26 +0000)
* tracepoint.c (cmd_qtinit): Call 'stop_tracing'.

2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>

* status-stop.exp (test_tstart_tstart): Check for error
returned by the second 'tstart' command.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/status-stop.exp

index b93b087ce3e28404a51748afb50a34e289169a90..3ca7f1ee8e24d8a9702cab882d92e9bf32ca705d 100644 (file)
@@ -1,3 +1,7 @@
+2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>
+
+       * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
+
 2013-04-25  Hui Zhu  <hui@codesourcery.com>
 
        PR gdb/15186
index dcc2e78f707fb3d1d82673a20ee31b34d2dced19..f6fea3e7f468cfb28e48850d242aa36e64d3fdf9 100644 (file)
@@ -2354,6 +2354,8 @@ cmd_qtinit (char *packet)
   /* Make sure we don't try to read from a trace frame.  */
   current_traceframe = -1;
 
+  stop_tracing ();
+
   trace_debug ("Initializing the trace");
 
   clear_installed_tracepoints ();
index 5d79e898cbaadd5b02c04ec033d3fc8d400e1138..d0076154bddc5aab8f18d5d8abebf91100d8222b 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>
+
+       * status-stop.exp (test_tstart_tstart): Check for error
+       returned by the second 'tstart' command.
+
 2013-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * gdb.arch/arm-bl-branch-dest.c: New file.
index 5ddcbabde0592db3a5225b04c7d89c6edbab68b1..899d466337c6379d0d487c811c22eb6fcfa4f00b 100644 (file)
@@ -75,7 +75,13 @@ proc test_tstart_tstart { } { with_test_prefix "tstart_tstart" {
     gdb_test "trace func1" "Tracepoint \[0-9\] at $hex: file.*"
     gdb_test_no_output "tstart"
 
-    gdb_test "tstart" "" "tstart again" "A trace is running already.  Start a new run\\? \\(y or n\\) " "y"
+    set test "tstart again"
+    gdb_test_multiple "tstart" $test {
+       -re "A trace is running already.  Start a new run.*y or n.*" {
+           # Send 'y' and make sure that we don't get any error.
+           gdb_test_no_output "y" $test
+       }
+    }
 }}
 
 # Verify that trace stops clearly when trace buffer is full.