Re: [PATCH] Hooks still needed for annotations

Nick Roberts
2005-06-01T21:31:55Z

> > Although the intention is to eventually remove annotations I don't think
> > this stage has been reached yet and it makes little sense to remove a
> > small number of calls. The patch below re-instates them.
>
> Nick, in order for you to guarentee that your Emacs is working properly,
> you are going to have to update the breakpoints after every command the
> user types. Even though I think adding the patch is a good idea, if you
> don't update the breakpoints after every command, bugs like this will
> make it so that some users do not get the updated breakpoints.

I don't think the fact that these annotations are missing in released versions
of GDB (6.2 and 6.3?) is a good reason not to have them in future releases.

> For instance, make a small main program, add a breakpoint, and then
> immediatly delete it. I doubt you will get the breakpoints-invalid
> annotation. The problem is, even if you fix them, you still have to
> check the breakpoints after every command unless you query GDB for it's
> version number to see if the bug is fixed.

I don't currently use breakpoints-invalid but I might wish to at one stage.
I want to ensure that annotations aren't quietly removed by dismantling them
bit by bit.

Nick