[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56810: 29.0.50; 'set target-async' is deprecated in M-x gdb and more
From: |
Zhiwei Chen |
Subject: |
bug#56810: 29.0.50; 'set target-async' is deprecated in M-x gdb and more |
Date: |
Thu, 28 Jul 2022 15:00:45 +0800 |
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
- bug#56810: 29.0.50; 'set target-async' is deprecated in M-x gdb and more,
Zhiwei Chen <=