From 4ece857e48fa650761b594b24dcd26948d24f15a Mon Sep 17 00:00:00 2001 From: law Date: Thu, 20 Dec 2001 18:35:29 +0000 Subject: [PATCH] * cli/cli-decode.c (add_cmd): Initialize pre_show_hook in the new command. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-decode.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b00e4137bc..f9552200ee 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 * 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 bb9eb94962..1d51c6b6b7 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; -- 2.11.0