Re: [PATCH with testcase] Bug 11568 - delete thread-specific breakpoint on the thread exit

Muhammad Waqas
2013-09-02T04:06:04Z

Thanks.
On 08/30/2013 09:27 PM, Pedro Alves wrote:
> While reviewing this, I noticed the new test fails for me:
>
> FAIL: gdb.threads/thread-specific-bp.exp: All stop: continue to breakpoint: set break here
>
> Investigating, I saw the problem is "info threads" messes up
> the current source for breakpoints:
>
> (gdb) PASS: gdb.threads/thread-specific-bp.exp: All stop: Breakpoint set
> break 32
> Breakpoint 4 at 0x323dc08d90: file pthread_join.c, line 32.
> ^^^^^^^^^^^^^^^^^^^^^^^
> (gdb) commands
>
> Does it actually pass for you? I can't see how.
It passed for me without your patch.
PASS: gdb.threads/thread-specific-bp.exp: All stop: continue to
breakpoint: set break here

Also I didn't got this problem in any run, I tested it many times.

(gdb) PASS: gdb.threads/thread-specific-bp.exp: All stop: Breakpoint set
break 32
Breakpoint 4 at 0x4005f7: file
../.././../gdb/gdb/testsuite/./gdb.threads/thread-specific-bp.c, line 32.
(gdb) commands