* 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:
parent
2b706932ee
commit
d8ca156b0e
20 changed files with 124 additions and 60 deletions
|
@ -31,6 +31,7 @@ struct regcache;
|
|||
struct symbol;
|
||||
struct type;
|
||||
struct ui_file;
|
||||
struct language_defn;
|
||||
|
||||
/* The structure which defines the type of a value. It should never
|
||||
be possible for a program lval value to survive over a call to the
|
||||
|
@ -519,12 +520,14 @@ extern int val_print (struct type *type, const gdb_byte *valaddr,
|
|||
int embedded_offset, CORE_ADDR address,
|
||||
struct ui_file *stream, int format,
|
||||
int deref_ref, int recurse,
|
||||
enum val_prettyprint pretty);
|
||||
enum val_prettyprint pretty,
|
||||
const struct language_defn *language);
|
||||
|
||||
extern int common_val_print (struct value *val,
|
||||
struct ui_file *stream, int format,
|
||||
int deref_ref, int recurse,
|
||||
enum val_prettyprint pretty);
|
||||
enum val_prettyprint pretty,
|
||||
const struct language_defn *language);
|
||||
|
||||
extern int val_print_string (CORE_ADDR addr, int len, int width,
|
||||
struct ui_file *stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue