From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Qz9NNjWho2BpFQAAWB0awg (envelope-from ) for ; Tue, 18 May 2021 07:12:53 -0400 Received: by simark.ca (Postfix, from userid 112) id D39821F11C; Tue, 18 May 2021 07:12:53 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id ED3D41E01F for ; Tue, 18 May 2021 07:12:52 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9A94C3844023; Tue, 18 May 2021 11:12:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A94C3844023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1621336372; bh=Tgm/j5iCU8OpjQqDPm5h76wRYaZSWaMopWhARRFTbTQ=; h=Subject:In-Reply-To:Date:References:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=mZV0HZh3tH89EFdSlWs4K/UAm6mFFZrvEopF0Fd4Jq7Eu5dY/0Q94P07DrJzVRAuz DnB2WweDHMqNOOODax9A+Asv5R/0NN81rKFXhAAPSoPnRQS6NmdjVwMH3ovbg5ywBM 9Oulrc/PlS4VDZbamKspgp+ydHLhqZl4Ahzb+Y8c= Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 33C0C3844023 for ; Tue, 18 May 2021 11:12:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 33C0C3844023 Received: by mail-wm1-x32a.google.com with SMTP id b7so4599205wmh.5 for ; Tue, 18 May 2021 04:12:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Tgm/j5iCU8OpjQqDPm5h76wRYaZSWaMopWhARRFTbTQ=; b=Jtp6R4i7VPtXfhPpOZuFdZSPLA3DGc8tbX2FrfX+/Owf5QndgpnCrvnQrK3RAsiJal D2ceV+1d/SeETaXn5lpgb79jJeTSRuP4CR5J7rCx8B/QjiLcnR/nD1bHtyuLbGD55q+C k3jA2LoPb/nKJkqFKaDOjf6dUzi4ZnR/E6+UzaIjIr5xN7QdcpRf3cbEc7SN+FRMRJG/ 7ffWsQ1vXouj6icAioFzvl8l7jThdiZAkMZC2O0dLmPnr5EtIpJSmAejEdEDz72XKnbC Ywf4xDyO8dzHIuoUkTAPIZzJdclEB6p9QHiUpmkUjQ3YagjXjVWi95UzcK+jaBYDs25n iPBg== X-Gm-Message-State: AOAM533UYRHshhsstnWTRqYonhc3ExTruXxEndBrdU/alGA4Tjqqpv+B RN1MnjvxXtSh4l3Tfbpqp3WzfxEEiIzIOA== X-Google-Smtp-Source: ABdhPJxZ3Jh2XWR7S/gQJqu3fR4UkgpKlZT71eVd8cEYMyI8/s1pPrE9NdIutqrf3Qyme3U+N8w6jw== X-Received: by 2002:a7b:c005:: with SMTP id c5mr4928423wmb.113.1621336369231; Tue, 18 May 2021 04:12:49 -0700 (PDT) Received: from smtpclient.apple (cpc159317-cmbg20-2-0-cust151.5-4.cable.virginm.net. [81.111.29.152]) by smtp.gmail.com with ESMTPSA id q27sm18377157wrz.79.2021.05.18.04.12.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 May 2021 04:12:48 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: [RFC][gdb/cli] Ignore error in gdb command script In-Reply-To: <20210518095958.GA22771@delia> Date: Tue, 18 May 2021 12:12:47 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <44B64C9E-9E19-47BD-80CD-0C660C7A9D94@undo.io> References: <20210518095958.GA22771@delia> To: Tom de Vries X-Mailer: Apple Mail (2.3654.80.0.2.43) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Marco Barisione via Gdb-patches Reply-To: Marco Barisione Cc: Tom Tromey , GDB patches mailing list Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 18 May 2021, at 10:59, Tom de Vries wrote: > Hi, >=20 > While trying to reproduce a failing test-case from the testsuite on = the > command line using a gdb command script, I ran into the problem that a = command > failed which stopped script execution. >=20 > I could work around this by splitting the script at each error, but I = realized > it would be nice if I could tell gdb to ignore the error. >=20 > Inspired by make, I chose the '-' prefix. As MI commands are prefixed by =E2=80=9C-=E2=80=9C, isn=E2=80=99t there = a risk of confusion? There=E2=80=99s also a =E2=80=9C-=E2=80=9D command (see tui/tui-win.c) = which will stop working with your patch. --=20 Marco Barisione