This is the mail archive of the gdb-patches@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: [PATCH] Don't give spurious warnings when using thread specific breakpoints


Daniel Jacobowitz wrote:
(gdb) b main if 1
Breakpoint 1 at 0x439ee0
(gdb) b main if 2
Note: breakpoint 1 also set at pc 0x439ee0.
Breakpoint 2 at 0x439ee0

If that's right, why is similar for threads wrong?  That's just a
different condition.  And the wording is such that it's perfectly
correct.

Maybe that is wrong too, but, as you say, it isn't lying.


I would argue that a breakpoint in another thread is not in the same location (unlike a condition). The similarity of the PC might be considered an accident of the implementation, perhaps.

It's also easy to tell that the thread is different, while comparing conditions makes no sense (although checking for the presence of conditions might).

In any case, it is an irritant, a customer has complained, and the added information isn't a bad thing.

Andrew Stubbs


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