mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-14 03:15:06 +08:00
* c-lang.c (emit_char c_printchar c_printstr), c-lang.h (c_printstr)
ch-lang.c (chill_printstr chill_printchar) c-valprint.c (c_val_print) ch-valprint.c (chill_val_print) expprint.c (print_subexp) f-lang.c (f_printstr f_printchar emit_char) f-valprint.c (f_val_print) jv-lang.c (java_printchar java_emit_char) jv-valprint.c (java_value_print java_val_print) language.c (unk_lang_printchar unk_lang_printstr unk_lang_emit_char) language.h (struct language_defn LA_PRINT_STRING LA_EMIT_CHAR) m2-lang.c (m2_printstr m2_printchar emit_char) printcmd.c (print_formatted) scm-lang.c (scm_printstr) valprint.c (val_print_string) value.h (val_print_string): Add emit_char routines to language_desc struct to allow finer control over language specific character output issues. Add character width arg to printstr routines to allow handling of wchar_t/Unicode strings. Fix c_printstr to handle wide characters. Supply width argument to LA_PRINT_STRING and val_print_string. * jv-lang.c (java_object_type dynamics_objfile java_link_class_type get_dynamics_objfile get_java_object_type) jv-lang.h (get_java_object_type): Make lots of things static. * expprint.c (dump_prefix_expression dump_subexp): Move opcode name printing to common routine (op_name). * (dump_subexp): Add support for OP_SCOPE.
This commit is contained in:
@ -34,7 +34,7 @@ static value_ptr evaluate_subexp_scm PARAMS ((struct type *, struct expression *
|
||||
int *, enum noside));
|
||||
static value_ptr scm_lookup_name PARAMS ((char *));
|
||||
static int in_eval_c PARAMS ((void));
|
||||
static void scm_printstr PARAMS ((GDB_FILE *, char *, unsigned int, int));
|
||||
static void scm_printstr PARAMS ((GDB_FILE *stream, char *string, unsigned int length, int width, int force_ellipses));
|
||||
|
||||
extern struct type ** CONST_PTR (c_builtin_types[]);
|
||||
|
||||
@ -49,10 +49,11 @@ scm_printchar (c, stream)
|
||||
}
|
||||
|
||||
static void
|
||||
scm_printstr (stream, string, length, force_ellipses)
|
||||
scm_printstr (stream, string, length, width, force_ellipses)
|
||||
GDB_FILE *stream;
|
||||
char *string;
|
||||
unsigned int length;
|
||||
int width;
|
||||
int force_ellipses;
|
||||
{
|
||||
fprintf_filtered (stream, "\"%s\"", string);
|
||||
@ -245,9 +246,10 @@ const struct language_defn scm_language_defn = {
|
||||
scm_parse,
|
||||
c_error,
|
||||
evaluate_subexp_scm,
|
||||
scm_printchar, /* Print a character constant */
|
||||
scm_printchar, /* Print a character constant */
|
||||
scm_printstr, /* Function to print string constant */
|
||||
NULL, /* Create fundamental type in this language */
|
||||
NULL, /* Function to print a single character */
|
||||
NULL, /* Create fundamental type in this language */
|
||||
c_print_type, /* Print a type using appropriate syntax */
|
||||
scm_val_print, /* Print a value using appropriate syntax */
|
||||
scm_value_print, /* Print a top-level value */
|
||||
|
Reference in New Issue
Block a user