* tracepoint.c (trace_start_command): Set trace_running_p.
(trace_stop_command): Clear trace_running_p.
This commit is contained in:
parent
7dd4a46650
commit
57a3982409
|
@ -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>
|
Sat Mar 28 15:19:48 1998 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
* NEWS: Update for 4.17 release.
|
* NEWS: Update for 4.17 release.
|
||||||
|
|
|
@ -1576,6 +1576,7 @@ trace_start_command (args, from_tty)
|
||||||
set_traceframe_num (-1); /* all old traceframes invalidated */
|
set_traceframe_num (-1); /* all old traceframes invalidated */
|
||||||
set_tracepoint_num (-1);
|
set_tracepoint_num (-1);
|
||||||
set_traceframe_context(-1);
|
set_traceframe_context(-1);
|
||||||
|
trace_running_p = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf_filtered ("Trace can only be run on remote targets.\n");
|
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);
|
remote_get_noisy_reply (target_buf);
|
||||||
if (strcmp (target_buf, "OK"))
|
if (strcmp (target_buf, "OK"))
|
||||||
error ("Bogus reply from target: %s", target_buf);
|
error ("Bogus reply from target: %s", target_buf);
|
||||||
|
trace_running_p = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
error ("Trace can only be run on remote targets.");
|
error ("Trace can only be run on remote targets.");
|
||||||
|
|
Loading…
Reference in New Issue