diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:46:26 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:46:26 +0000 |
commit | e6c014f28ffa7d52bf7e9b599422f5ca910a17dd (patch) | |
tree | 8e47549c435c05b87846f1ed80a3ce98342eb015 /gdb/printcmd.c | |
parent | ec22ec346b8e22135fd4cb48aa3853f032dee331 (diff) | |
download | gdb-e6c014f28ffa7d52bf7e9b599422f5ca910a17dd.zip gdb-e6c014f28ffa7d52bf7e9b599422f5ca910a17dd.tar.gz gdb-e6c014f28ffa7d52bf7e9b599422f5ca910a17dd.tar.bz2 |
* gdbtypes.h (struct language_defn): Add forward declaration.
(lookup_typename): Add LANGUAGE and GDBARCH parameters.
(lookup_unsigned_typename): Likewise.
(lookup_signed_typename): Likewise.
* gdbtypes.c (lookup_typename): Add LANGUAGE and GDBARCH parameters.
Use them instead of current_language and current_gdbarch.
(lookup_unsigned_typename): Add LANGUAGE and GDBARCH parameters.
Pass them to lookup_typename.
(lookup_signed_typename): Likewise.
* c-exp.y: Pass parse_language and parse_gdbarch to
lookup_unsigned_typename and lookup_signed_typename.
* objc-exp.y: Likewise.
* m2-exp.y: Pass parse_language and parse_gdbarch to lookup_typename.
* c-lang.c (evaluate_subexp_c): Pass expression language and
gdbarch to lookup_typename.
* printcmd.c (printf_command): Pass current language and
gdbarch to lookup_typename.
* python/python-type.c (typy_lookup_typename): Likewise.
Include "language.h".
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 9678a73..c95b156 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2271,7 +2271,9 @@ printf_command (char *arg, int from_tty) gdb_byte *str; CORE_ADDR tem; int j; - struct type *wctype = lookup_typename ("wchar_t", NULL, 0); + struct type *wctype = lookup_typename (current_language, + current_gdbarch, + "wchar_t", NULL, 0); int wcwidth = TYPE_LENGTH (wctype); gdb_byte *buf = alloca (wcwidth); struct obstack output; @@ -2309,7 +2311,9 @@ printf_command (char *arg, int from_tty) break; case wide_char_arg: { - struct type *wctype = lookup_typename ("wchar_t", NULL, 0); + struct type *wctype = lookup_typename (current_language, + current_gdbarch, + "wchar_t", NULL, 0); struct type *valtype; struct obstack output; struct cleanup *inner_cleanup; |