Re: "tbreak" and "commands" commands...

Fernando Nasser
2002-07-26T20:46:40Z

Joel Brobecker wrote:
>
> > Does it work with "break" instead of "tbreak"? I've never tried it
> > with tbreak, but "break" works in 5.1--- I use it a lot.
>
> Yes, it works with regular breakpoints. It's only with temporary
> breakpoints that it does not work. I suspect that the temporary
> breakpoint with its command list is deleted before the command-list gets
> a chance to be executed. I would like to know if this is the intended
> behavior (in which case I think GDB should refuse to add the command),
> or if this is a bug.
>

Yes, it is a bug anyway. We should either refuse or handle the
commands.

Is there any specific reason you want to delete the breakpoint?
You can just disable it as part of the commands.