think-o bug: c->hook_in left set?

Michael Snyder msnyder@redhat.com
Thu Mar 21 16:30:00 GMT 2002


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.



More information about the Gdb mailing list