[PATCH] Add gdb.current_language function
Eli Zaretskii
eliz@gnu.org
Fri May 27 17:48:51 GMT 2022
> Date: Fri, 27 May 2022 11:36:42 -0600
> From: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org>
> Cc: Tom Tromey <tromey@adacore.com>
>
> This adds the gdb.current_language function, which can be used to find
> the current language without (1) ever having the value "auto" or (2)
> having to parse the output of "show language".
> ---
> gdb/NEWS | 4 ++++
> gdb/doc/python.texi | 6 ++++++
> gdb/python/python.c | 12 ++++++++++++
> gdb/testsuite/gdb.python/py-parameter.exp | 13 +++++++++++++
> 4 files changed, 35 insertions(+)
Thanks.
> + ** New function gdb.current_language() that returns the name of the
Please remove the "()" part, it is not needed there, and can be
misinterpreted.
> +@defun gdb.current_language ()
> +Return the name of the current language as a string. Note that,
> +unlike @code{gdb.parameter(language')}, this function will never
^^
A quote missing there.
The documentation parts are okay with these nits fixed.
More information about the Gdb-patches
mailing list