From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78730 invoked by alias); 3 Jul 2015 13:31:35 -0000 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 Received: (qmail 78206 invoked by uid 48); 3 Jul 2015 13:31:34 -0000 From: "jens.elmenthaler at advantest dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/18622] New: Erroneous "running" event while in suspended state messing up Eclipse DSF Date: Fri, 03 Jul 2015 13:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jens.elmenthaler at advantest dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q3/txt/msg00027.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18622 Bug ID: 18622 Summary: Erroneous "running" event while in suspended state messing up Eclipse DSF Product: gdb Version: 7.6 Status: NEW Severity: normal Priority: P2 Component: mi Assignee: unassigned at sourceware dot org Reporter: jens.elmenthaler at advantest dot com Target Milestone: --- Created attachment 8409 --> https://sourceware.org/bugzilla/attachment.cgi?id=8409&action=edit Patch to suppress event for all-stop mode I'm debugging a multi-threaded software written in C++ using Eclipse DSF in all-stop mode. The gdb version is "GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.1.el7". >>From time to time threads are spawned or exited and if gdb detects this while being suspended, an event "*running,thread-id=all" is received. This makes Eclipse DSF assume the inferior resumed, although the inferior is still suspended. I tracked it down to the function mi_on_resume() in mi-interp.c and developed a simple patch, that seems to work fine for me at least. -- You are receiving this mail because: You are on the CC list for the bug.