From 3db26b01ffb7bebae01c937865b6d25d0d28ed6f Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 12 Sep 2002 19:49:56 +0000 Subject: * exec.c (xfer_memory): Fix compilation warning with old versions of GCC. * tracepoint.c (trace_find_tracepoint_command): Likewise. --- gdb/tracepoint.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gdb/tracepoint.c') diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 976f925..2d12f31 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); -- cgit v1.1