This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: think-o bug: c->hook_in left set?
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 21 Mar 2002 16:14:22 -0800
- Subject: Re: think-o bug: c->hook_in left set?
- Newsgroups: cygnus.gdb
- Organization: Red Hat, Inc.
- References: <3C94D03F.2010801@cygnus.com>
Andrew Cagney wrote:
>
> Hello,
>
> Top.c contains:
>
> /* If this command has been post-hooked, run the hook last. */
> if ((c->hook_post) && (!c->hook_in))
> {
> c->hook_in = 1; /* Prevent recursive hooking */
> execute_user_command (c->hook_post, (char *) 0);
> c->hook_in = 0; /* allow hook to work again once it is complete */
> }
>
> If execute_user_command() throws an error, as far as I can tell, hook_in
> is left set to one :-(
Looks like you're right -- should be a clean-up.