summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2001-12-20 18:35:30 +0000
committerJeff Law <law@redhat.com>2001-12-20 18:35:30 +0000
commitf1e40cfc59e267bbaba6be21e20575be9eb61b9a (patch)
tree3d84cc67d30e4b0731931fbcbf41ac939c12365e /gdb/cli
parent90a94865b10e34343a28485161a23f99bf373486 (diff)
downloadgdb-f1e40cfc59e267bbaba6be21e20575be9eb61b9a.tar.gz
* cli/cli-decode.c (add_cmd): Initialize pre_show_hook in
the new command.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index bb9eb949627..1d51c6b6b7e 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -90,6 +90,7 @@ add_cmd (char *name, enum command_class class, void (*fun) (char *, int),
c->doc = doc;
c->flags = 0;
c->replacement = NULL;
+ c->pre_show_hook = NULL;
c->hook_pre = NULL;
c->hook_post = NULL;
c->hook_in = 0;