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 | f48ff60ac89f36934e814ee3ffffa46914af0870 (patch) | |
tree | f21cb2e49af3ccced62a715e5a20b8aa93eaa03d /gdb | |
parent | 37503931d0e0114248e20c27c117f326a6e48963 (diff) | |
download | gdb-f48ff60ac89f36934e814ee3ffffa46914af0870.zip gdb-f48ff60ac89f36934e814ee3ffffa46914af0870.tar.gz gdb-f48ff60ac89f36934e814ee3ffffa46914af0870.tar.bz2 |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cli/cli-script.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b1d646c..224fc5d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 24729b1..d4a9def 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. */ |