This introduces pascal_value_print_inner.
gdb/ChangeLog
2020-03-13 Tom Tromey <tom@tromey.com>
* p-valprint.c (pascal_value_print_inner): New function.
* p-lang.h (pascal_value_print_inner): Declare.
* p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
+2020-03-13 Tom Tromey <tom@tromey.com>
+
+ * p-valprint.c (pascal_value_print_inner): New function.
+ * p-lang.h (pascal_value_print_inner): Declare.
+ * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
+
2020-03-13 Tom Tromey <tom@tromey.com>
* m2-valprint.c (m2_value_print_inner): New function.
pascal_print_type, /* Print a type using appropriate syntax */
pascal_print_typedef, /* Print a typedef using appropriate syntax */
pascal_val_print, /* Print a value using appropriate syntax */
- nullptr, /* la_value_print_inner */
+ pascal_value_print_inner, /* la_value_print_inner */
pascal_value_print, /* Print a top-level value */
default_read_var_value, /* la_read_var_value */
NULL, /* Language specific skip_trampoline */
struct value *,
const struct value_print_options *);
+/* Implement la_value_print_inner for Pascal. */
+
+extern void pascal_value_print_inner (struct value *, struct ui_file *, int,
+ const struct value_print_options *);
+
extern void pascal_value_print (struct value *, struct ui_file *,
const struct value_print_options *);
TYPE_CODE (type));
}
}
+
+/* See p-lang.h. */
+
+void
+pascal_value_print_inner (struct value *val, struct ui_file *stream,
+ int recurse,
+ const struct value_print_options *options)
+
+{
+ pascal_val_print (value_type (val), value_embedded_offset (val),
+ value_address (val), stream, recurse, val, options);
+}
+
\f
void
pascal_value_print (struct value *val, struct ui_file *stream,