This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 6/6] Remove an empty-body 'if' statement
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Mon, 6 Jan 2014 11:54:58 +0800
- Subject: [PATCH 6/6] Remove an empty-body 'if' statement
- Authentication-results: sourceware.org; auth=none
- References: <1388980498-10886-1-git-send-email-yao at codesourcery dot com>
This patch removes the if statement and the comments together.
gdb:
2014-01-06 Yao Qi <yao@codesourcery.com>
* gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
statement.
---
gdb/gnu-nat.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 7397ec8..f8c8e68 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -3002,10 +3002,6 @@ 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 */ ;
-
inf->want_exceptions = val;
}
--
1.7.7.6