From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66239 invoked by alias); 5 Oct 2015 12:18:23 -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 66211 invoked by uid 48); 5 Oct 2015 12:18:22 -0000 From: "cmclachlan@undo-software.com" To: gdb-prs@sourceware.org Subject: [Bug remote/19064] New: Running shared in continue post-hook causes gdb remote command/response mismatch Date: Mon, 05 Oct 2015 12:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cmclachlan@undo-software.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 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-q4/txt/msg00010.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=19064 Bug ID: 19064 Summary: Running shared in continue post-hook causes gdb remote command/response mismatch Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: remote Assignee: unassigned at sourceware dot org Reporter: cmclachlan@undo-software.com Target Milestone: --- I am seeing a problem with putting 'shared' in a continue post hook when debugging a remote target with gdb from git (e753e154bf8a1f507b43e03dec04b341dde3f429 cloned from git://sourceware.org/git/binutils-gdb.git around 12:00 BST 5th October 2015). It looks like gdb is not waiting for the response to continue before running shared. This causes an $qXfer:libraries-svr4:read::0,fff#91 serial packet to be sent before the response to the $vCont;c#a8 is recieved. Here is a simple reproducer script gdb_git_install/bin/gdbserver localhost:6790 /bin/ls nowhere & cat <