From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2690 invoked by alias); 4 Jul 2012 17:02:54 -0000 Received: (qmail 2673 invoked by uid 22791); 4 Jul 2012 17:02:53 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Jul 2012 17:02:41 +0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug threads/10227] GDB resumes inferior unexpectedly when receiving ignored signal; step/next behave as continue Date: Wed, 04 Jul 2012 17:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 7.5 X-Bugzilla-Changed-Fields: Status Last reconfirmed CC Target Milestone Ever Confirmed Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q3/txt/msg00010.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=10227 Pedro Alves changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2012-07-04 CC| |palves at redhat dot com Target Milestone|6.8 |7.5 Ever Confirmed|0 |1 --- Comment #2 from Pedro Alves 2012-07-04 17:02:24 UTC --- Hi Paul, This recent patch should have fixed this: 2012-06-28 Jan Kratochvil Pedro Alves * gdbthread.h (ALL_THREADS): New macro. (thread_list): Declare. * infrun.c (handle_inferior_event) : Don't keep going, but instead fall through to the stepping handling. * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with the passed in signal. Adjust debug output. (resume_callback): Rename to ... (linux_nat_resume_callback): ... this. Pass the thread's last stop signal, if in "pass" state. (linux_nat_resume): Adjust to rename. (stop_wait_callback): New assertion. Don't respawn signals; instead let the LWP remain with SIGNALLED set. (linux_nat_wait_1): Remove flushing of pending SIGSTOPs. * remote.c (append_pending_thread_resumptions): New. (remote_vcont_resume): Call it. * target.h (target_resume): Extend comment. I tried both your tests with current mainline, and didn't see anything wrong. I checkout a gdb from just before that patch, and tries your first test, and indeed it broke. Can you confirm? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.