This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]