* [RFC] Deprecate dbx mode
@ 2022-03-03 17:04 Tom Tromey
2022-03-03 17:36 ` Pedro Alves
0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2022-03-03 17:04 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
GDB has a dbx emulation mode that adds a few aliases and helper
commands. This mode is barely documented and is very superficial
besides. I suspect it is rarely used, and I would like to propose
deprecating it for GDB 12, and then removing it in GDB 13.
---
gdb/NEWS | 2 ++
gdb/main.c | 3 +++
2 files changed, 5 insertions(+)
diff --git a/gdb/NEWS b/gdb/NEWS
index dc2cac1871b..0b75a4a50bd 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,8 @@
*** Changes since GDB 11
+* DBX mode is deprecated, and will be removed in GDB 13
+
* Improved C++ template support
GDB now treats functions/types involving C++ templates like it does function
diff --git a/gdb/main.c b/gdb/main.c
index 8f944d86545..73fdff25018 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -1028,6 +1028,9 @@ captured_main_1 (struct captured_main_args *context)
}
}
+ if (dbx_commands)
+ warning (_("--dbx mode is deprecated and will be removed"));
+
save_original_signals_state (quiet);
/* Try to set up an alternate signal stack for SIGSEGV handlers. */
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] Deprecate dbx mode
2022-03-03 17:04 [RFC] Deprecate dbx mode Tom Tromey
@ 2022-03-03 17:36 ` Pedro Alves
0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2022-03-03 17:36 UTC (permalink / raw)
To: Tom Tromey, gdb-patches
+1. Honestly, I've never heard of anyone using this mode.
May want to announce this in the more user-facing gdb list, just in case, though.
Pedro Alves
On 2022-03-03 17:04, Tom Tromey via Gdb-patches wrote:
> GDB has a dbx emulation mode that adds a few aliases and helper
> commands. This mode is barely documented and is very superficial
> besides. I suspect it is rarely used, and I would like to propose
> deprecating it for GDB 12, and then removing it in GDB 13.
> ---
> gdb/NEWS | 2 ++
> gdb/main.c | 3 +++
> 2 files changed, 5 insertions(+)
>
> diff --git a/gdb/NEWS b/gdb/NEWS
> index dc2cac1871b..0b75a4a50bd 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -3,6 +3,8 @@
>
> *** Changes since GDB 11
>
> +* DBX mode is deprecated, and will be removed in GDB 13
> +
> * Improved C++ template support
>
> GDB now treats functions/types involving C++ templates like it does function
> diff --git a/gdb/main.c b/gdb/main.c
> index 8f944d86545..73fdff25018 100644
> --- a/gdb/main.c
> +++ b/gdb/main.c
> @@ -1028,6 +1028,9 @@ captured_main_1 (struct captured_main_args *context)
> }
> }
>
> + if (dbx_commands)
> + warning (_("--dbx mode is deprecated and will be removed"));
> +
> save_original_signals_state (quiet);
>
> /* Try to set up an alternate signal stack for SIGSEGV handlers. */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-03 17:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 17:04 [RFC] Deprecate dbx mode Tom Tromey
2022-03-03 17:36 ` Pedro Alves
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).