2001-03-13 Fernando Nasser <fnasser@redhat.com>
authorFernando Nasser <fnasser@redhat.com>
Tue, 13 Mar 2001 22:29:14 +0000 (22:29 +0000)
committerFernando Nasser <fnasser@redhat.com>
Tue, 13 Mar 2001 22:29:14 +0000 (22:29 +0000)
From Steven Johnson <sjohnson@neurizon.net>
* cli/cli-script.c (define_command): Fix setting of post hooks.

gdb/ChangeLog
gdb/cli/cli-script.c

index b1d646c..224fc5d 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-13  Fernando Nasser  <fnasser@redhat.com>
+
+       From Steven Johnson <sjohnson@neurizon.net>
+       * cli/cli-script.c (define_command): Fix setting of post hooks.
+
 2001-03-13  Mark Kettenis  <kettenis@gnu.org>
 
        * i386-linux-tdep.c: Fix formatting and clarify comments.
index 24729b1..d4a9def 100644 (file)
@@ -1166,8 +1166,8 @@ define_command (char *comname, int from_tty)
           newc->hookee_pre = hookc; /* We are marked as hooking target cmd. */
           break;
         case CMD_POST_HOOK:
-          hookc->hook_pre  = newc;  /* Target gets hooked.  */
-          newc->hookee_pre = hookc; /* We are marked as hooking target cmd. */
+          hookc->hook_post  = newc;  /* Target gets hooked.  */
+          newc->hookee_post = hookc; /* We are marked as hooking target cmd. */
           break;
         default:
           /* Should never come here as hookc would be 0. */