This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH with testcase] Bug 11568 - delete thread-specific breakpoint on the thread exit
- From: Muhammad Waqas <mwaqas at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 2 Sep 2013 09:05:46 +0500
- Subject: Re: [PATCH with testcase] Bug 11568 - delete thread-specific breakpoint on the thread exit
- Authentication-results: sourceware.org; auth=none
- References: <521CF7D0 dot 5040801 at redhat dot com> <1377692710-2885-1-git-send-email-mwaqas at codesourcery dot com> <5220C80D dot 5030502 at redhat dot com>
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