aboutsummaryrefslogtreecommitdiff
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
commit47724592cfbb3b2dbc773c34daf90105000312d2 (patch)
treeed1ee3c75dd56bf8f5cb5b1f0e61835785c0dd65
parentb323314b018b752feee07a658598a123d6b4a77a (diff)
downloadgdb-47724592cfbb3b2dbc773c34daf90105000312d2.zip
gdb-47724592cfbb3b2dbc773c34daf90105000312d2.tar.gz
gdb-47724592cfbb3b2dbc773c34daf90105000312d2.tar.bz2
* cli/cli-decode.c (add_cmd): Initialize pre_show_hook in
the new command.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cli/cli-decode.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b00e413..f955220 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Thu Dec 20 11:37:50 2001 Jeffrey A Law (law@redhat.com)
+
+ * cli/cli-decode.c (add_cmd): Initialize pre_show_hook in
+ the new command.
+
2001-12-20 Andrew Cagney <ac131313@redhat.com>
* remote.c (struct packet_reg): Add field in_g_packet.
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index bb9eb94..1d51c6b 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;