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: Tue, 20 Jun 2023 17:25:06 +0800 Message-ID: References: <87pm5q4mwc.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21942"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64186@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 20 11:22: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 1qBXZ6-0005bg-DY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jun 2023 11:22:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBXYr-0002QV-PM; Tue, 20 Jun 2023 05:22:05 -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 1qBXYo-0002PT-VE for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 05:22:02 -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 1qBXYo-0002ky-N1 for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 05:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBXYo-0007UP-Jb for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 05:22: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: Tue, 20 Jun 2023 09:22: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.168725289828727 (code B ref 64186); Tue, 20 Jun 2023 09:22:02 +0000 Original-Received: (at 64186) by debbugs.gnu.org; 20 Jun 2023 09:21:38 +0000 Original-Received: from localhost ([127.0.0.1]:58068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBXYP-0007TH-PM for submit@debbugs.gnu.org; Tue, 20 Jun 2023 05:21:37 -0400 Original-Received: from mail-lj1-f173.google.com ([209.85.208.173]:61946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBXYN-0007Sv-Qp for 64186@debbugs.gnu.org; Tue, 20 Jun 2023 05:21:36 -0400 Original-Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2b477e9d396so29357951fa.3 for <64186@debbugs.gnu.org>; Tue, 20 Jun 2023 02:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687252889; x=1689844889; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=v/SO7a9MTxH2SFl24Tr1ctIweow4XVcwL7zoY3YW72g=; b=nrfWg7bmLLvhs3IepqxYa8ah1QROAGpJBootBeNSvcf0zg6Xo0NjPS8JfDg11fQb3m 9bdK8jU4n/tSkZgwGezNBGs1Or+nd4yXPbSPrkTeku1Hoh3wU94p6tWuXdNaDxT3TBpf w0ytdDIEBZy7Ulhs5yMFSowkurp9RiM2C6InhK3OkllohbYesFzxJTE3u3FSBzQQ9HxI OiTsTbtLEvqoDcpF7hBLiYnQmMV38q80Z0nsphMlrAjjVtVhBQna3ZtqxqrKML8DAsc1 Miqoz6Kh3V2mG0ARrdPUUMxtqtDhn1tDKmA7ZU6t+qjoEOtgmOOfTx8wOkfNIX9bv1U0 57+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687252889; x=1689844889; h=content-transfer-encoding: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=v/SO7a9MTxH2SFl24Tr1ctIweow4XVcwL7zoY3YW72g=; b=klzKZ+PnQgQrACITILPVewJ0FO6ILodS80Qu0J9BWwW/8TZt87jiSuuOoldo1TDNsp UEVF63mdFRMtd2zUJalF8Rm68Y5FqJotpafiWT7543ORrwaw/U2EjCkY4GsM66NNPU/W xMPkaIuyySnIzlIAo8UomZQU5+n9L++5fDDBF+n9aZXM7wFxF61WYDuc+PrR1SshOfzV RARxD2VYej3d+m14UuXxOC46SvZckutoyFaQmi1OWMwjUZ6txK9hkAQhsZ74YukSwC5c qTIIMtlBj71EtQZca0plols14U7BgNudDRJ1pRI7pDG2tNnEu+S9pwCW1lDVmGJhrVc/ yYPw== X-Gm-Message-State: AC+VfDyXmLYuXpfDeDj5AZmRuefFAKZjiplti2yQdc7/hpXr7B6GZWn7 E9scK/VzsvE2qwueUgHkRMD4siZta6tU9oT//oY= X-Google-Smtp-Source: ACHHUZ7Qgsuyj3zsW8cwG5eyV6TaGiQ5eGEfVY9wxE8LRxeLc55daM+1EkOkybXO2RJCON88xTamz9R+sYlcpYANxKE= X-Received: by 2002:a2e:9d4a:0:b0:2b4:65ef:3af5 with SMTP id y10-20020a2e9d4a000000b002b465ef3af5mr5459450ljj.30.1687252889339; Tue, 20 Jun 2023 02:21:29 -0700 (PDT) In-Reply-To: <87pm5q4mwc.fsf@yahoo.com> 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:263741 Archived-At: Po Lu =E4=BA=8E2023=E5=B9=B46=E6=9C=8820=E6=97=A5=E5= =91=A8=E4=BA=8C 15:24=E5=86=99=E9=81=93=EF=BC=9A > > Wang Diancheng writes: > > > Hi, > > > > The command "-gdb-set target-async" is deprecated since gdb 7.7, It is > > annoyed that there is a message "Warning: 'set target-async', an alias = for > > the command 'set mi-async', is deprecated. Use 'set mi-async'." when gd= b > > buffer is ready for command. Following is a patch to suppress that > > warning. > > > > Thanks. > > What about versions of GDB earlier than 7.7? We should detect them, and > use `set mi-async' there. > Like other places of gdb-mi.el, function gdb-set-mi-async-handler() will use 'set target-async' if GDB (versions earlier than 7.7) reports "No symbol".