diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-05-06 21:35:01 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-05-06 21:35:01 +0000 |
commit | d8ca156b0e90ca9549bde4a88c2c2f27127f71a7 (patch) | |
tree | 6e3dcc04ed2388f8fab12af288022cd1045e91f6 /gdb/mt-tdep.c | |
parent | * options.h (DEFINE_var): Add set_user_set_##varname__. (diff) | |
download | binutils-gdb-d8ca156b0e90ca9549bde4a88c2c2f27127f71a7.tar.gz binutils-gdb-d8ca156b0e90ca9549bde4a88c2c2f27127f71a7.tar.bz2 binutils-gdb-d8ca156b0e90ca9549bde4a88c2c2f27127f71a7.zip |
* valprint.c (val_print): Add new language parameter and use it
instead of using the current_language. Update calls to val_print
throughout.
(common_val_print): Add new langauge parameter and pass it to
val_print.
* value.h (struct language_defn): Add opaque declaration.
(val_print, common_val_print): Update declarations.
* stack.c (print_frame_args): Update call to common_val_print
using the appropriate language.
* mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
* c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
#include "language.h" if necessary.
Update calls to val_print and common_val_print.
* Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
Update dependencies.
Diffstat (limited to 'gdb/mt-tdep.c')
-rw-r--r-- | gdb/mt-tdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/mt-tdep.c b/gdb/mt-tdep.c index 57ff4601721..b3049dcdda3 100644 --- a/gdb/mt-tdep.c +++ b/gdb/mt-tdep.c @@ -36,6 +36,7 @@ #include "dwarf2-frame.h" #include "infcall.h" #include "gdb_assert.h" +#include "language.h" enum mt_arch_constants { @@ -691,7 +692,8 @@ mt_registers_info (struct gdbarch *gdbarch, (gdbarch, regnum)), file); val_print (register_type (gdbarch, regnum), buf, - 0, 0, file, 0, 1, 0, Val_no_prettyprint); + 0, 0, file, 0, 1, 0, Val_no_prettyprint, + current_language); fputs_filtered ("\n", file); } else if (regnum == MT_MAC_REGNUM || regnum == MT_MAC_PSEUDOREG_REGNUM) |