public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "mihai.ciric at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/17627] In MI all-stop/mi-async off mode, a thread exit make the prompt (kind of) return, but it shouldn't Date: Tue, 09 Dec 2014 10:07:00 -0000 [thread overview] Message-ID: <bug-17627-4717-AK6rkiXVj0@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-17627-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=17627 Mihai Cîrîc <mihai.ciric at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mihai.ciric at gmail dot com --- Comment #2 from Mihai Cîrîc <mihai.ciric at gmail dot com> --- Am currently facing this same problem myself. Running GDB 7.8 Am trying to debug an application which has it's own prompt. It reaches my prompt however after receiving an event it runs it but silently returns to the gdb prompt. myprompt> anycommand =thread-created,id="67",group-id="i1" *running,thread-id="all" *application does what it's supposed to do* myprompt> *here i press enter* <-but anything else is the same, basically reaches gdb &"\n" ^done *this is where it gets odd, because it doesn't always react the same, sometimes after gdb responds once, it returns to normal and, for example, after another enter, myprompt is back up other times i don't get returned to my application, however all threads are still running. And if i hold enter pressed : &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done myprompt> I get back inside my application Here's the same part with debug lwp: =thread-exited,id="68",group-id="i1" &"LNW: waitpid(-1, ...) returned 0, ERRNO-OK\n" &"LLW: exit (ignore)\n" &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"linux_nat_wait: [process -1], [TARGET_WNOHANG]\n" &"LLW: enter\n" &"LNW: waitpid(-1, ...) returned 3442, ERRNO-OK\n" &"LLW: waitpid 3442 received Stopped (tty input) (stopped)\n" &"LLTA: KILL(SIG0) Thread 0xe5945b70 (LWP 3442) (OK)\n" &"LLW: Candidate event Stopped (tty input) (stopped) in Thread 0xe5945b70 (LWP 3442).\n" Tell me if i there's any more information i can provide Mihai -- You are receiving this mail because: You are on the CC list for the bug. >From gdb-prs-return-17111-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue Dec 09 10:59:56 2014 Return-Path: <gdb-prs-return-17111-listarch-gdb-prs=sources.redhat.com@sourceware.org> Delivered-To: listarch-gdb-prs@sources.redhat.com Received: (qmail 4069 invoked by alias); 9 Dec 2014 10:59:55 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <gdb-prs.sourceware.org> List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/gdb-prs/> List-Post: <mailto:gdb-prs@sourceware.org> List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs> Sender: gdb-prs-owner@sourceware.org Delivered-To: mailing list gdb-prs@sourceware.org Received: (qmail 4033 invoked by uid 48); 9 Dec 2014 10:59:55 -0000 From: "mihai.ciric at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/17627] In MI all-stop/mi-async off mode, a thread exit make the prompt (kind of) return, but it shouldn't Date: Tue, 09 Dec 2014 10:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: mihai.ciric at gmail dot com X-Bugzilla-Status: NEW 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_severity Message-ID: <bug-17627-4717-CMTIZ2nvt6@http.sourceware.org/bugzilla/> In-Reply-To: <bug-17627-4717@http.sourceware.org/bugzilla/> References: <bug-17627-4717@http.sourceware.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00354.txt.bz2 Content-length: 390 https://sourceware.org/bugzilla/show_bug.cgi?id=17627 Mihai Cîrîc <mihai.ciric at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |critical -- You are receiving this mail because: You are on the CC list for the bug. >From gdb-prs-return-17112-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue Dec 09 13:30:17 2014 Return-Path: <gdb-prs-return-17112-listarch-gdb-prs=sources.redhat.com@sourceware.org> Delivered-To: listarch-gdb-prs@sources.redhat.com Received: (qmail 19129 invoked by alias); 9 Dec 2014 13:30:16 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <gdb-prs.sourceware.org> List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/gdb-prs/> List-Post: <mailto:gdb-prs@sourceware.org> List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs> Sender: gdb-prs-owner@sourceware.org Delivered-To: mailing list gdb-prs@sourceware.org Received: (qmail 19104 invoked by uid 48); 9 Dec 2014 13:30:16 -0000 From: "simon.marchi at ericsson dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/17627] In MI all-stop/mi-async off mode, a thread exit make the prompt (kind of) return, but it shouldn't Date: Tue, 09 Dec 2014 13:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: simon.marchi at ericsson dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-17627-4717-gnXvO7sOas@http.sourceware.org/bugzilla/> In-Reply-To: <bug-17627-4717@http.sourceware.org/bugzilla/> References: <bug-17627-4717@http.sourceware.org/bugzilla/> 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: 2014-q4/txt/msg00355.txt.bz2 Content-length: 572 https://sourceware.org/bugzilla/show_bug.cgi?id\x17627 --- Comment #3 from Simon Marchi <simon.marchi at ericsson dot com> --- Hi Mihai, I sent this patch to gdb-patches, which fixes the problem I reported. https://sourceware.org/ml/gdb-patches/2014-12/msg00037.html Can you see if it helps for your problem? It specifically targets a bug when a thread exits. I see that your application has a lots of threads (...thread-created,id="67"...), so it's plausible that it will help you. Simon -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2014-12-09 10:07 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-11-19 20:38 [Bug gdb/17627] New: " simon.marchi at ericsson dot com 2014-11-20 15:33 ` [Bug gdb/17627] " simon.marchi at ericsson dot com 2014-12-09 10:07 ` mihai.ciric at gmail dot com [this message] 2014-12-09 14:51 ` mihai.ciric at gmail dot com 2014-12-10 18:05 ` cvs-commit at gcc dot gnu.org 2014-12-10 18:07 ` simon.marchi at ericsson dot com 2014-12-17 14:41 ` marc.khouzam at ericsson dot com 2014-12-17 14:47 ` simon.marchi at ericsson dot com 2014-12-25 0:46 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-17627-4717-AK6rkiXVj0@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).