aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-setshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cli/cli-setshow.c')
-rw-r--r--gdb/cli/cli-setshow.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c
index 42c2b15..dcb50ca 100644
--- a/gdb/cli/cli-setshow.c
+++ b/gdb/cli/cli-setshow.c
@@ -37,11 +37,7 @@ notify_command_param_changed_p (bool param_changed, struct cmd_list_element *c)
if (!param_changed)
return false;
- if (c->theclass == class_maintenance || c->theclass == class_deprecated
- || c->theclass == class_obscure)
- return false;
-
- return true;
+ return c->theclass != class_maintenance && c->theclass != class_obscure;
}