aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-01-12 11:52:19 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-01-12 16:00:07 +0000
commit61671e97927dcc1b302bd01fd59bc61c27972839 (patch)
tree1078be11dae50585e6c5716377407c6a75c675da /gdb/doc
parent51eebae32ab1b7bb454c90252edb877211f6fcb4 (diff)
downloadgdb-61671e97927dcc1b302bd01fd59bc61c27972839.zip
gdb-61671e97927dcc1b302bd01fd59bc61c27972839.tar.gz
gdb-61671e97927dcc1b302bd01fd59bc61c27972839.tar.bz2
gdb/python: add gdb.host_charset function
We already have gdb.target_charset and gdb.target_wide_charset. This commit adds gdb.host_charset along the same lines.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/python.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 6bd5f6b..38fce5b 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -518,6 +518,14 @@ Return the name of the current target wide character set
never returned.
@end defun
+@findex gdb.host_charset
+@defun gdb.host_charset ()
+Return a string, the name of the current host character set
+(@pxref{Character Sets}). This differs from
+@code{gdb.parameter('host-charset')} in that @samp{auto} is never
+returned.
+@end defun
+
@findex gdb.solib_name
@defun gdb.solib_name (address)
Return the name of the shared library holding the given @var{address}