unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56810: 29.0.50; 'set target-async' is deprecated in M-x gdb and more
@ 2022-07-28  7:00 Zhiwei Chen
  2022-07-28  8:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Zhiwei Chen @ 2022-07-28  7:00 UTC (permalink / raw)
  To: 56810

gcc a.cc -o a.out

where a.cc is a hello world program.

    emacs -Q
    M-x gdb RET

You will see such a warning:

(gdb) Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated.
Use 'set mi-async'.

The option mi-async was introduced in 2014 [1], so I thought using "set
mi-async" is safe enough in wild.

Another bug is the latest gdb supports debuginfod, which allows users
download debuginfo from an http server. When the environment variable
'DEBUGINFO_URLS' is set, let gdb run in terminal, it will prompt

    This GDB supports auto-downloading debuginfo from the following URLs:
    https://debuginfod.archlinux.org
    Enable debuginfod for this session? (y or [n])

But M-x gdb will unconditionally type 'y' for us

    Debuginfod has been enabled.
    To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.

The only workaround is

    echo 'set debuginfod enabled off' >> ~/.gdbinit

It's inconvenient. IMHO, M-x gdb should handle this case.


[1]: https://lists.gnu.org/archive/html/info-gnu/2014-07/msg00015.html

-- 
Zhiwei Chen





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#56810: 29.0.50; 'set target-async' is deprecated in M-x gdb and more
  2022-07-28  7:00 bug#56810: 29.0.50; 'set target-async' is deprecated in M-x gdb and more Zhiwei Chen
@ 2022-07-28  8:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-07-28  9:22   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-07-28  8:36 UTC (permalink / raw)
  To: Zhiwei Chen; +Cc: 56810

Zhiwei Chen <condy0919@gmail.com> writes:

> gcc a.cc -o a.out
>
> where a.cc is a hello world program.
>
>     emacs -Q
>     M-x gdb RET
>
> You will see such a warning:
>
> (gdb) Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated.
> Use 'set mi-async'.
>
> The option mi-async was introduced in 2014 [1], so I thought using "set
> mi-async" is safe enough in wild.

GDB before 7.7 is still used in the wild, so I'd rather not break
support for those old versions.

I can't seem to figure out how to get the GDB version using a GDB-MI
command.  Any ideas?






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#56810: 29.0.50; 'set target-async' is deprecated in M-x gdb and more
  2022-07-28  8:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-07-28  9:22   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2022-07-28  9:22 UTC (permalink / raw)
  To: Po Lu; +Cc: condy0919, 56810

> Cc: 56810@debbugs.gnu.org
> Date: Thu, 28 Jul 2022 16:36:56 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> I can't seem to figure out how to get the GDB version using a GDB-MI
> command.  Any ideas?

You want -gdb-version, I believe.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-28  9:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-28  7:00 bug#56810: 29.0.50; 'set target-async' is deprecated in M-x gdb and more Zhiwei Chen
2022-07-28  8:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-28  9:22   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).