summaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/command.c')
-rw-r--r--gdb/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/command.c b/gdb/command.c
index fd8b8145288..dc39265d6b6 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -1418,6 +1418,8 @@ do_setshow_command (arg, from_tty, c)
else
error ("gdb internal error: bad cmd_type in do_setshow_command");
(*c->function.sfunc) (NULL, from_tty, c);
+ if (c->type == set_cmd && set_hook)
+ set_hook (c);
}
/* Show all the settings in a list of show commands. */