This is the mail archive of the gdb-patches@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]

Re: Patch to command hook


> Date: Thu, 17 Aug 2000 17:00:01 +1000
> From: Steven Johnson <sbjohnson@ozemail.com.au>
>
> OK, I just copied @emph{hook} from the existing documentation of
> hooks. should it also be @defn{hook} ?

Yes, definitely.

> > Hmm...  So how does one redefine or undefine a hook for a command?
> > I'm probably missing something, but what?
> 
> Yes, this is the best I could come up with. I could find no way un un-defining
> a command once it was defined. So, "hook-" and "hookpre-" are both seperate
> commands, they are also mutually exclusive, so I made it that once you had
> defined one or the other then you couldn't define the other. Ideally, I would
> like it to come up with a warning, give you the option of not defining, or of
> undefining the previous command. Maybe I just shouldn't of added "hookpre-"?
> 
> The other concern I had was when a script gets an error, how is the command
> unrolled. I know it doesn't execute the hooked command, but the call to the
> hook doesn't return anything (obvious) so how is it that execution terminates?

I'll leave it to the other maintainers to comment on this.

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