[RFC] multiple breakpoints from FILE:LINE
Andrew STUBBS
andrew.stubbs@st.com
Fri Jan 13 14:17:00 GMT 2006
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.
More information about the Gdb
mailing list