From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Marco Barisione In-Reply-To: <20210518095958.GA22771@delia> Date: Tue, 18 May 2021 12:12:47 +0100 Cc: GDB patches mailing list , Tom Tromey 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-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Tue, 18 May 2021 11:12:51 -0000 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