From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28023 invoked by alias); 25 Mar 2014 15:45:26 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 27997 invoked by uid 89); 25 Mar 2014 15:45:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ve0-f176.google.com Received: from mail-ve0-f176.google.com (HELO mail-ve0-f176.google.com) (209.85.128.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 25 Mar 2014 15:45:17 +0000 Received: by mail-ve0-f176.google.com with SMTP id cz12so742635veb.7 for ; Tue, 25 Mar 2014 08:45:15 -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:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=amzkPEv5sw/A5s1WqtOdYKbn0juTyoFmXpNo8UYBF7U=; b=WFjltNiJaew4ymOQ+ZKdpuVhfdcnSpvN6kyK8SLfiMAc1gx5Nks1dsje0+gRmISzJF zYxX960YfcA+LmT4W3tqXpQ+g3fCshDVe1G19g69VpgHpTNBkl3qjQmCSCsslT//GPPn KLw9rDLJqljdKd8YppT7hpXs5xi8tBd7NAXgKp0DyqOfq6zsSRhB1IQb5XT2U1yCzK0e tnLgWUT1vvuF02YFgRoF94AWSQ0KmiV5tebNCJUWA8gxEkoDNC1RrEpXxqBDJHuc9fOa S+2kyCoMyB1UIXX1ccj7fnoqoDh0LtcCJYnx9lgPhAXA2xJxx23ejc+byXmYMg/1/GSa VJCA== X-Gm-Message-State: ALoCoQlksJjv73b84luYuSgyyva+fttVtSw6ToTgk/WY/9dMLFXuMWdnIYCSZd/Y3oC42T9IyBDAsh2EDKYg9W+WcfmnGYwEUlRLc4w3T7CQhmZrelui7AHV2i9VRF2J5FdAJyRMK6rgaYlPoH4xWZKxSIUP86VD/kvT6xnqxGI9VjVQ4gmKLEYAZ18u5N9u2X4WXOZr9Ba/EjUXQJUM7rS1NCf6897N/w== MIME-Version: 1.0 X-Received: by 10.221.17.200 with SMTP id qd8mr98914vcb.50.1395762315287; Tue, 25 Mar 2014 08:45:15 -0700 (PDT) Received: by 10.52.13.101 with HTTP; Tue, 25 Mar 2014 08:45:15 -0700 (PDT) In-Reply-To: <1395750623-8054-1-git-send-email-palves@redhat.com> References: <1395750623-8054-1-git-send-email-palves@redhat.com> Date: Tue, 25 Mar 2014 15:45:00 -0000 Message-ID: Subject: Re: [PUSHED] "source", foreground execution commands, and target-async From: Doug Evans To: Pedro Alves Cc: gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00596.txt.bz2 On Tue, Mar 25, 2014 at 5:30 AM, Pedro Alves wrote: > Sourcing a GDB script that runs foreground execution commands in > succession fails if the target can async: > > Breakpoint 1, main () at ../../../src/gdb/testsuite/gdb.base/source-execution.c:36 > 36 func1 (); > (gdb) source ../../../src/gdb/testsuite/gdb.base/source-execution.gdb > ../../../src/gdb/testsuite/gdb.base/source-execution.gdb:21: Error in sourced command file: > Cannot execute this command while the selected thread is running. > (gdb) FAIL: gdb.base/source-execution.exp: source source-execution.gdb > > That is, after a foreground execution command, GDB moves on to the > following command immediately before waiting for the previous command > to complete. > > https://sourceware.org/ml/gdb-patches/2011-09/msg00037.html (b4a14fd0) > addressed this for command lists, Python's gdb.execute, etc., but > missed "source". Fixed now in the same way. Thanks.