This is the mail archive of the gdb@sourceware.org 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]
Other format: [Raw text]

Re: [RFC] multiple breakpoints from FILE:LINE


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.


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