diff options
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/language.h b/gdb/language.h index 2cc6a3b..0e240f5 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -106,6 +106,8 @@ struct language_defn { enum type_check la_type_check; /* Default type checking */ int (*la_parser) PARAMS((void)); /* Parser function */ void (*la_error) PARAMS ((char *)); /* Parser error function */ + void (*la_printchar) PARAMS ((int, FILE *)); + void (*la_printstr) PARAMS ((FILE *, char *, unsigned int, int)); struct type **la_longest_int; /* Longest signed integral type */ struct type **la_longest_unsigned_int; /* Longest uns integral type */ struct type **la_longest_float; /* Longest floating point type */ @@ -215,6 +217,11 @@ set_language PARAMS ((enum language)); #define local_hex_format_suffix() \ (current_language->la_hex_format.la_format_suffix) +#define local_printchar(ch, stream) \ + (current_language->la_printchar(ch, stream)) +#define local_printstr(stream, string, length, force_ellipses) \ + (current_language->la_printstr(stream, string, length, force_ellipses)) + /* Return a format string for printf that will print a number in one of the local (language-specific) formats. Result is static and is overwritten by the next call. Takes printf options like "08" or "l" |