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: Pedro Alves <palves at redhat dot com>
- To: Muhammad Waqas <mwaqas at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 30 Aug 2013 17:27:57 +0100
- 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>
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.
I've filed PR15911 for that and sent a fix:
https://sourceware.org/ml/gdb-patches/2013-08/msg00935.html
With that in place, your test passes, but there are a few
things that'll need addressing. Stay tuned.
--
Pedro Alves