From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6453 invoked by alias); 1 Aug 2014 19:58:43 -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 6428 invoked by uid 48); 1 Aug 2014 19:58:42 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17223] cannot do background execution in scripts Date: Fri, 01 Aug 2014 19:58: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: normal X-Bugzilla-Who: dje at google 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: In-Reply-To: References: 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-q3/txt/msg00210.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17223 --- Comment #3 from dje at google dot com --- (In reply to dje from comment #1) > A potential hacky workaround is to feed the script to stdin. > One may need to do "set interactive-mode on". > But see pr 17224, currently trying this segvs. As an experiment, I find I can get gdb to process inferior events if I add enough nops to the script. E.g., do "info threads", do some mindless things like "pwd", do another "info threads", etc. and slowly the threads start to appear. In this case stdin is "hogging" the event queue. IWBN, at least in this case, if inferior events hogged the event queue. Are there some cases where we want the former and some where we want the latter? Or can we, for example, keep processing inferior events until there are no more? It may be that some command ("wait" or whatever) that one can put in a script to explicitly process all current inferior events has sufficient utility to warrant adding. -- You are receiving this mail because: You are on the CC list for the bug.