diff options
author | Fernando Nasser <fnasser@redhat.com> | 2001-03-13 22:29:14 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2001-03-13 22:29:14 +0000 |
commit | d22c3d949383d6138b0543b9f731aaf4af7a1bd1 (patch) | |
tree | 4ae243f34dc3239d5fa2aa43badae708e45dde0b /gdb/cli | |
parent | eb6c0beee0d997a9665f83737843c1b8b562c233 (diff) | |
download | gdb-d22c3d949383d6138b0543b9f731aaf4af7a1bd1.tar.gz |
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.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 24729b1b1e2..d4a9def73f8 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -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. */ |