aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-05-24 10:15:17 -0600
committerTom Tromey <tromey@adacore.com>2022-06-01 06:15:53 -0600
commit80fa4b2a606763e71c4b599fa88288f554a0ea5b (patch)
tree251f21a9776f96cc0a0b83e905968385cb409b48 /gdb/NEWS
parent46c7fd95fc42466a5a8c3b3d70925f1a8af68de3 (diff)
downloadfsf-binutils-gdb-80fa4b2a606763e71c4b599fa88288f554a0ea5b.zip
fsf-binutils-gdb-80fa4b2a606763e71c4b599fa88288f554a0ea5b.tar.gz
fsf-binutils-gdb-80fa4b2a606763e71c4b599fa88288f554a0ea5b.tar.bz2
Add gdb.current_language and gdb.Frame.language
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". It also adds the gdb.Frame.language, which can be used to find the language of a given frame. This is normally preferable if one has a Frame object handy.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index dac6dab..960f90b 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -58,6 +58,13 @@ maintenance info line-table
This is the same format that GDB uses when printing address, symbol,
and offset information from the disassembler.
+ ** New function gdb.current_language that returns the name of the
+ current language. Unlike gdb.parameter('language'), this will
+ never return 'auto'.
+
+ ** New method gdb.Frame.language that returns the name of the
+ frame's language.
+
*** Changes in GDB 12
* DBX mode is deprecated, and will be removed in GDB 13