diff options
author | Joel Brobecker <brobecker@gnat.com> | 2002-09-12 19:49:56 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2002-09-12 19:49:56 +0000 |
commit | 3db26b01ffb7bebae01c937865b6d25d0d28ed6f (patch) | |
tree | 12cb63f791d4ca078aa04373f65a205d8429a552 /gdb/tracepoint.c | |
parent | 17c5ed2cf3447bc9ce167f0ebc87bdd528026521 (diff) | |
download | gdb-3db26b01ffb7bebae01c937865b6d25d0d28ed6f.zip gdb-3db26b01ffb7bebae01c937865b6d25d0d28ed6f.tar.gz gdb-3db26b01ffb7bebae01c937865b6d25d0d28ed6f.tar.bz2 |
* 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.c | 10 |
1 files changed, 6 insertions, 4 deletions
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); |