From c26e9cbb0ce70e8fca32a40c434a0837bf46750a Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Sun, 5 Jan 2014 19:32:51 +0800 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/gnu-nat.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6117bc9e50e..cf1d1b95f8b 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 ffab91efe9e..3da27d3f68f 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; } -- 2.30.2