Remove an empty-body 'if' statement
authorYao Qi <yao@codesourcery.com>
Sun, 5 Jan 2014 11:32:51 +0000 (19:32 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 7 Jan 2014 03:01:55 +0000 (11:01 +0800)
This patch removes the if statement and the comments together.

gdb:

2014-01-07  Yao Qi  <yao@codesourcery.com>

* gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
statement.

gdb/ChangeLog
gdb/gnu-nat.c

index 6117bc9e50ed42f4cbbdbfef08d7926a3861a949..cf1d1b95f8b6934c93110d40a93348bad0b9aba3 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-07  Yao Qi  <yao@codesourcery.com>
+
+       * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
+       statement.
+
 2014-01-07  Yao Qi  <yao@codesourcery.com>
 
        * gnu-nat.c (info_port_rights): Add qualifier const to
index ffab91efe9e2ec8017a00d15822fdefea8b2c60e..3da27d3f68fe2a92c40eb5710f0b40fc56763439 100644 (file)
@@ -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;
 }
This page took 0.029148 seconds and 4 git commands to generate.