Re: [RFC] multiple breakpoints from FILE:LINE

Andrew STUBBS
2006-01-13T14:17:29Z

Eli Zaretskii wrote:
> How about something like
>
> break something.adb:12 if SOME_CONDITION
>
> where SOME_CONDITION is something we should invent to specify the
> instance where we want to put the single breakpoint? This has the
> advantage of using an existing syntax, especially if the condition
> could be made to use some convenience variable. By contrast, what you
> suggest modifies the syntax of a location specification; do we really
> want that?

Not that it makes any real difference but ...

To me that looks like it will set a break point everywhere and then
check at runtime if it is the right one.

Now I know you weren't thinking of doing that, but that's what the
condition normally means.

It may also make setting a real condition more tricky.