This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Fix to post hooks is in.
- To: gdb-patches at sources dot redhat dot com, sjohnson at neurizon dot net
- Subject: [patch] Fix to post hooks is in.
- From: Fernando Nasser <fnasser at redhat dot com>
- Date: Tue, 13 Mar 2001 17:28:52 -0500
- Organization: Red Hat Canada
I just checked Steven's patch in. I am working on a test based on his
suggestion (that is on a previous message).
Fernando
From Steven Johnson <sjohnson@neurizon.net>
* cli/cli-script.c (define_command): Fix setting of post hooks.
Index: cli/cli-script.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-script.c,v
retrieving revision 1.5
diff -c -p -r1.5 cli-script.c
*** cli-script.c 2001/03/06 08:21:19 1.5
--- cli-script.c 2001/03/13 22:24:58
*************** define_command (char *comname, int from_
*** 1166,1173 ****
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. */ break;
default:
/* Should never come here as hookc would be 0. */
--- 1166,1173 ----
newc->hookee_pre = hookc; /* We are marked as hooking target
cmd. */ break;
case CMD_POST_HOOK:
! 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. */
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9