From: Yao Qi Date: Sun, 5 Jan 2014 11:32:51 +0000 (+0800) Subject: Remove an empty-body 'if' statement X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=c26e9cbb0ce70e8fca32a40c434a0837bf46750a;hp=0cc6f43dae73e5805f470fc823c3e503b8cdbffe;p=deliverable%2Fbinutils-gdb.git Remove an empty-body 'if' statement This patch removes the if statement and the comments together. gdb: 2014-01-07 Yao Qi * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if' statement. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6117bc9e50..cf1d1b95f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-01-07 Yao Qi + + * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if' + statement. + 2014-01-07 Yao Qi * gnu-nat.c (info_port_rights): Add qualifier const to diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index ffab91efe9..3da27d3f68 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -3002,9 +3002,8 @@ set_exceptions_cmd (char *args, int from_tty) struct inf *inf = cur_inf (); int val = parse_bool_arg (args, "set exceptions"); - if (inf->task && inf->want_exceptions != val) - /* Make this take effect immediately in a running process. */ - /* XXX */ ; + /* Make this take effect immediately in a running process. */ + /* XXX */ ; inf->want_exceptions = val; }