From 96c07c5b96e970c93ab71a1f351ca669bba78d1a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 25 Sep 2009 21:39:53 +0000 Subject: gdb PR python/10664: * language.h (struct language_defn) : Add 'char_type' argument. (LA_GET_STRING): Likewise. (default_get_string, c_get_string): Update. * language.c (default_get_string): Add 'char_type' argument. * c-valprint.c (c_textual_element_type): Rename from textual_element_type. No longer static. Update callers. * c-lang.h (c_textual_element_type): Declare. * c-lang.c (c_get_string): Add 'char_type' argument. gdb/testsuite PR python/10664: * gdb.base/charset.exp: Test utf-16 strings with Python. --- gdb/c-lang.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/c-lang.h') diff --git a/gdb/c-lang.h b/gdb/c-lang.h index ba9d996..afafc9b 100644 --- a/gdb/c-lang.h +++ b/gdb/c-lang.h @@ -106,5 +106,9 @@ extern int cp_is_vtbl_ptr_type (struct type *); extern int cp_is_vtbl_member (struct type *); +/* These are in c-valprint.c. */ + +extern int c_textual_element_type (struct type *, char); + #endif /* !defined (C_LANG_H) */ -- cgit v1.1