mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-03 04:01:22 +08:00
* 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.
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
#include "stack.h"
|
||||
#include "dictionary.h"
|
||||
#include "gdb_string.h"
|
||||
#include "language.h"
|
||||
|
||||
static void list_args_or_locals (int locals, int values, struct frame_info *fi);
|
||||
|
||||
@ -298,7 +299,8 @@ list_args_or_locals (int locals, int values, struct frame_info *fi)
|
||||
{
|
||||
val = read_var_value (sym2, fi);
|
||||
common_val_print
|
||||
(val, stb->stream, 0, 1, 0, Val_no_prettyprint);
|
||||
(val, stb->stream, 0, 1, 0, Val_no_prettyprint,
|
||||
language_def (SYMBOL_LANGUAGE (sym2)));
|
||||
ui_out_field_stream (uiout, "value", stb);
|
||||
}
|
||||
do_cleanups (cleanup_tuple);
|
||||
@ -306,7 +308,8 @@ list_args_or_locals (int locals, int values, struct frame_info *fi)
|
||||
case PRINT_ALL_VALUES:
|
||||
val = read_var_value (sym2, fi);
|
||||
common_val_print
|
||||
(val, stb->stream, 0, 1, 0, Val_no_prettyprint);
|
||||
(val, stb->stream, 0, 1, 0, Val_no_prettyprint,
|
||||
language_def (SYMBOL_LANGUAGE (sym2)));
|
||||
ui_out_field_stream (uiout, "value", stb);
|
||||
do_cleanups (cleanup_tuple);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user