From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wang Diancheng Newsgroups: gmane.emacs.bugs Subject: bug#64186: Patch: Suppress deprecated '-gdb-set target-async' warning message in gdb-mi.el Date: Wed, 28 Jun 2023 11:51:39 +0800 Message-ID: References: <87pm5q4mwc.fsf@yahoo.com> <83352m73g3.fsf@gnu.org> <83wmzx3qoj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000c2d31105ff2872f3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15621"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 64186@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 28 05:49:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEMBE-0003rf-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jun 2023 05:49:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEMAx-0002s0-V8; Tue, 27 Jun 2023 23:49:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEMAw-0002qK-Vp for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 23:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEMAw-00083Y-M7 for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 23:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEMAw-0005p3-3S for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 23:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wang Diancheng Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2023 03:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64186 X-GNU-PR-Package: emacs Original-Received: via spool by 64186-submit@debbugs.gnu.org id=B64186.168792408722137 (code B ref 64186); Wed, 28 Jun 2023 03:49:02 +0000 Original-Received: (at 64186) by debbugs.gnu.org; 28 Jun 2023 03:48:07 +0000 Original-Received: from localhost ([127.0.0.1]:49842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEMA1-0005ku-JP for submit@debbugs.gnu.org; Tue, 27 Jun 2023 23:48:06 -0400 Original-Received: from mail-lj1-f178.google.com ([209.85.208.178]:60463) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEM9v-0005jb-GZ for 64186@debbugs.gnu.org; Tue, 27 Jun 2023 23:48:02 -0400 Original-Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2b69923a715so53091261fa.0 for <64186@debbugs.gnu.org>; Tue, 27 Jun 2023 20:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687924073; x=1690516073; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EL25w7ZIMjyh8YWwoYRe7yvbOk6OMqmRJb2CTxefEQE=; b=aXRKlVLiPG3kOMcnHsbwjAk0RBmQEV0FfWHYRscJrbLy+pOFT20SmSQERR/pK/Fsur slHXhlSd9CyBFZEn+ErALXAkTS2dpCdQfoYgwrpmRK1PU8C73eaw14ZBssCCTw7LwShR TAdh2SgelsR0wY0vZT2lSXfuzTQLI+sNNqH882Sszgw7PM9lYe4OodlJrx1XrDyj+L6r do7H8f+4HdpcrGjdi/jOVAjMo/+OqbDUEpcR47j+M5BDiONimw5VQaCj7a/Z2xDVhaJL uuj6VbIelK1Zw1nWVKrYOUHIFgyXef3UzNdTga6QkqrvWrmbEqp7fNvGzJX499vRMq6E GWNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687924073; x=1690516073; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EL25w7ZIMjyh8YWwoYRe7yvbOk6OMqmRJb2CTxefEQE=; b=W/3xqMQf5Ljl9mI7L7GNCoWTlt38tnmmS3m3gK3cIKmi/U4rksBD3zOd+X9XKOFN1U vWYDhKz4ghFvMW9fgcSJhN09A2Da1vyGu5L3kECLbnKomh0YLQPeSHYvmpFOnrJ8KkJC ItfnU97H/0c5McY5o+byaKklx1KTFK1s6lPvub/y4rP29XjQ+TqfMrNBqWFb+pqFM7Yy IB5iAQxE7U6OuK0EQZf6p3WDPaonXDtmQg53ZFnQrevhGhkUn0iRrsR3+1oPNetDtCmy W8M0JCLDSmyLB5ID42KNpo1Ss8ZIGQU0y6kxG7/p9T9Fpf6JTVHjrU4lH2xycdua608e em8A== X-Gm-Message-State: AC+VfDx4HyBYZvJR746ydezalKqGP0t0x1ZoJM017w5q5pZ1pKh1oDaP qu34FPnswPymTMA2JTVikv+uOEWp8AkNOuBS/vE= X-Google-Smtp-Source: ACHHUZ6wdzqCQropHkqHJu4AMZhix4y3mEuMdgnzi2apacwRq1e62vj05jZsSmLQFetEcvVqdV8LrY4dYrI05jlgS+M= X-Received: by 2002:a05:6512:36d0:b0:4fb:8948:2b8e with SMTP id e16-20020a05651236d000b004fb89482b8emr1914939lfs.8.1687924072691; Tue, 27 Jun 2023 20:47:52 -0700 (PDT) In-Reply-To: <83wmzx3qoj.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264193 Archived-At: --000000000000c2d31105ff2872f3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Eli Zaretskii =E4=BA=8E2023=E5=B9=B46=E6=9C=8821=E6=97=A5=E5= =91=A8=E4=B8=89 21:12=E5=86=99=E9=81=93=EF=BC=9A > > merge 64186 63084 > thanks > > > From: Wang Diancheng > > Date: Wed, 21 Jun 2023 14:49:01 +0800 > > Cc: luangruo@yahoo.com, 64186@debbugs.gnu.org > > > > Eli Zaretskii =E4=BA=8E2023=E5=B9=B46=E6=9C=8820=E6=97= =A5=E5=91=A8=E4=BA=8C 19:55=E5=86=99=E9=81=93=EF=BC=9A > > > > > > Given all that mess, I wonder if "M-x gdb" in its current shape indee= d > > > supports the asynchronous execution. If it doesn't, we may be better > > > off not sending that command at all for now, until bug#63084 is fixed= . > > > > Yes, I agree. Currently gdb-mi doesn't actually support asynchronous > > execution because of bug#63084. Before it is fixed, to suppress the > > annoying warning, we can set gdb-non-stop-setting to nil as a > > workaround. > > Thanks, I've now done so on the emacs-29 branch. I will leave this > bug open (and merge it to bug#63084), so that they could be fixed in > the future, hopefully not too distant future. I did some hacks to make gdb-non-stop work, patch is attached. The patch try to set `gdb-non-stop` when target is running or at first stop. Sorry for rough patch. I'm new for elisp. --000000000000c2d31105ff2872f3 Content-Type: text/x-patch; charset="US-ASCII"; name="gdb-mi-support-non-stop.patch" Content-Disposition: attachment; filename="gdb-mi-support-non-stop.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_ljf6i3tq0 ZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVzL2dkYi1taS5lbCBiL2xpc3AvcHJvZ21vZGVzL2dk Yi1taS5lbAppbmRleCBjOWFmZTUwMmE1MC4uNjI2NDVhNTQyNDQgMTAwNjQ0Ci0tLSBhL2xpc3Av cHJvZ21vZGVzL2dkYi1taS5lbAorKysgYi9saXNwL3Byb2dtb2Rlcy9nZGItbWkuZWwKQEAgLTIz Nyw2ICsyMzcsNyBAQCBnZGItaGFuZGxlci1saXN0CiAoZGVmdmFyIGdkYi1zb3VyY2UtZmlsZS1s aXN0IG5pbAogICAiTGlzdCBvZiBzb3VyY2UgZmlsZXMgZm9yIHRoZSBjdXJyZW50IGV4ZWN1dGFi bGUuIikKIChkZWZ2YXIgZ2RiLWZpcnN0LWRvbmUtb3ItZXJyb3IgdCkKKyhkZWZ2YXIgZ2RiLXRh cmdldC1hc3luYy1jaGVja2VkIG5pbCkKIChkZWZ2YXIgZ2RiLXNvdXJjZS13aW5kb3ctbGlzdCBu aWwKICAgIkxpc3Qgb2Ygd2luZG93cyB1c2VkIGZvciBkaXNwbGF5aW5nIHNvdXJjZSBmaWxlcy4K IFNvcnRlZCBpbiBtb3N0LXJlY2VudGx5LXZpc2l0ZWQtZmlyc3Qgb3JkZXIuIikKQEAgLTQ1Myw5 ICs0NTQsNyBAQCBnZGItZGVidWctbG9nLW1heAogICAgICAgICAgIChjb25zdCAgIDp0YWcgIlVu bGltaXRlZCIgbmlsKSkKICAgOnZlcnNpb24gIjIyLjEiKQogCi07OyBUaGlzIGlzIGRpc2FibGVk IGJ5IGRlZmF1bHQgYmVjYXVzZSB3ZSBkb24ndCByZWFsbHkgc3VwcG9ydAotOzsgYXN5bmNocm9u b3VzIGV4ZWN1dGlvbiBvZiB0aGUgZGVidWdnZWU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