diff options
author | Keith Seitz <keiths@cygnus> | 1998-03-29 23:20:18 +0000 |
---|---|---|
committer | Keith Seitz <keiths@cygnus> | 1998-03-29 23:20:18 +0000 |
commit | 57a3982409fd9cd6c98a5c62a928853016017a1f (patch) | |
tree | 1612b56668cd8703beb253deae06a50530f2869d /gdb/tracepoint.c | |
parent | 7dd4a46650ff47b09c6de8579cf9bcc17d6edc46 (diff) | |
download | fsf-binutils-gdb-57a3982409fd9cd6c98a5c62a928853016017a1f.zip fsf-binutils-gdb-57a3982409fd9cd6c98a5c62a928853016017a1f.tar.gz fsf-binutils-gdb-57a3982409fd9cd6c98a5c62a928853016017a1f.tar.bz2 |
* tracepoint.c (trace_start_command): Set trace_running_p.
(trace_stop_command): Clear trace_running_p.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 4286353..e6bf60f 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -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."); |