summaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-09-12 19:49:56 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-09-12 19:49:56 +0000
commitd788e1ba1ba93f052a31e5847c253531b33331bf (patch)
treea415c737310ba5f3d0abb77f6f98e7c7fefc5852 /gdb/tracepoint.c
parenta3ca54bd10163dd09b74b074b61218ba07ab99d7 (diff)
downloadgdb-d788e1ba1ba93f052a31e5847c253531b33331bf.tar.gz
* exec.c (xfer_memory): Fix compilation warning with old versions
of GCC. * tracepoint.c (trace_find_tracepoint_command): Likewise.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 976f9259cdd..2d12f31d57b 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -2071,10 +2071,12 @@ trace_find_tracepoint_command (char *args, int from_tty)
if (target_is_remote ())
{
if (args == 0 || *args == 0)
- if (tracepoint_number == -1)
- error ("No current tracepoint -- please supply an argument.");
- else
- tdp = tracepoint_number; /* default is current TDP */
+ {
+ if (tracepoint_number == -1)
+ error ("No current tracepoint -- please supply an argument.");
+ else
+ tdp = tracepoint_number; /* default is current TDP */
+ }
else
tdp = parse_and_eval_long (args);