* tracepoint.c (trace_start_command): Set trace_running_p.
authorKeith Seitz <keiths@cygnus>
Sun, 29 Mar 1998 23:20:18 +0000 (23:20 +0000)
committerKeith Seitz <keiths@cygnus>
Sun, 29 Mar 1998 23:20:18 +0000 (23:20 +0000)
        (trace_stop_command): Clear trace_running_p.

gdb/ChangeLog
gdb/tracepoint.c

index 44a64673f21c0801b4189f3d4efdad8dcd076c3b..6b490280f55535b76d4e844a8f66dd0b266fcf20 100644 (file)
@@ -1,3 +1,8 @@
+Sun Mar 29 15:17:16 1998  Keith Seitz  <keiths@onions.cygnus.com>
+
+       * tracepoint.c (trace_start_command): Set trace_running_p.
+       (trace_stop_command): Clear trace_running_p.
+
 Sat Mar 28 15:19:48 1998  Stan Shebs  <shebs@andros.cygnus.com>
 
        * NEWS: Update for 4.17 release.
index 42863538e3e26520259bcbebead4ff3e4694686f..e6bf60f825f743cd9c72f58bc6662234c263a292 100644 (file)
@@ -1576,6 +1576,7 @@ trace_start_command (args, from_tty)
       set_traceframe_num (-1); /* all old traceframes invalidated */
       set_tracepoint_num (-1);
       set_traceframe_context(-1);
+      trace_running_p = 1;
     }
   else
     printf_filtered ("Trace can only be run on remote targets.\n");
@@ -1593,6 +1594,7 @@ trace_stop_command (args, from_tty)
       remote_get_noisy_reply (target_buf);
       if (strcmp (target_buf, "OK"))
        error ("Bogus reply from target: %s", target_buf);
+      trace_running_p = 0;
     }
   else
     error ("Trace can only be run on remote targets.");