From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5999 invoked by alias); 22 Mar 2014 00:13:14 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 5988 invoked by uid 89); 22 Mar 2014 00:13:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-vc0-f178.google.com Received: from mail-vc0-f178.google.com (HELO mail-vc0-f178.google.com) (209.85.220.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 22 Mar 2014 00:13:13 +0000 Received: by mail-vc0-f178.google.com with SMTP id im17so3450915vcb.9 for ; Fri, 21 Mar 2014 17:13:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=6sHfwqFjeX3vHXjJmI4+riFJldRq214ajQ+jwFwBwNI=; b=OXWzs6lrWMjCNqkTi6ep9GsMe/xnnt1vMH1Vwk+S0cZVv2i5IyMd1ea/9CMqmzKpvT HOf388BEJmZ6aBFBqORlksJLceUdQuxcdic+rqsE4ENmSDVFlxVNahV7UTprlLIWqOWE hq/XRikL1hxMPzXLnzHadNBApfAxPVKdezu4t5kdoHivTWFia74zeCiOWwkphOjjufKh QMaq/0hrCU3BgSVNtLDLDxuuEh9pogBVKnQMdlyOXZIjAdAE+lDVc6WLHxssutLTJyos +qVX7m53INSGovZS4MbTEsjIxBgk76wtWzjim5uLZLXsnNwJkBp3uKLFOxKTbJCqeW3b Y1Xw== X-Gm-Message-State: ALoCoQnw916r+aH6Qsr4TUy3x7oYfY0hc32CqMjXCdXtClyb65BBJHEMSZ6OTUo0t91PwmYC9tCsyY/HkPWvHqP8VyFWnMxf8uFeKP7S19VADPtFkGrcYAgXtQUVc/cH4lXyf1XBrm0/dMlqCsAFG7QH/IS1Qsw4sUfn33ZtAeqbtcU4dGSPVATsE8nF6AoKYpGOw9DbXgkS MIME-Version: 1.0 X-Received: by 10.220.164.80 with SMTP id d16mr39026292vcy.15.1395447190616; Fri, 21 Mar 2014 17:13:10 -0700 (PDT) Received: by 10.52.13.101 with HTTP; Fri, 21 Mar 2014 17:13:10 -0700 (PDT) Date: Sat, 22 Mar 2014 00:13:00 -0000 Message-ID: Subject: Is gdb script execution intended to work this way in async mode? From: Doug Evans To: gdb Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00063.txt.bz2 Hi. If I source a script in target-async mode, non-asynchronous execution commands "finish" immediately in the sense that the following command in the script is done before the previous command has completed (in the expected sense - the command completes immediately, so to speak, but continuations are registered to perform the rest of the command, e.g. to keep stepping until a "next" has fully completed). I hope this is a bug. int main () { while (1) sleep (1); } set target-async on file a.out start source foo.gdb foo.gdb: next next --> foo.gdb:2: Error in sourced command file: Cannot execute this command while the selected thread is running. Turn on the following for better visualization: set debug infrun 1 set trace-commands on The second "next" command is executed before the continuations that implement the completion of the previous "next" command have, umm, completed.