diff options
author | Tom Tromey <tom@tromey.com> | 2020-03-13 17:39:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-03-13 18:03:41 -0600 |
commit | 64b653ca7058bfd4f91879dea628809d398b488e (patch) | |
tree | 83ea5b40798b6782b733992385d12020bdd9667d /gdb/m2-valprint.c | |
parent | 6999f067c1b30c1a2c3e41a0f68f74e459652560 (diff) | |
download | fsf-binutils-gdb-64b653ca7058bfd4f91879dea628809d398b488e.zip fsf-binutils-gdb-64b653ca7058bfd4f91879dea628809d398b488e.tar.gz fsf-binutils-gdb-64b653ca7058bfd4f91879dea628809d398b488e.tar.bz2 |
Introduce cp_print_value_fields and c_value_print_struct
This adds cp_print_value_fields and c_value_print_struct, value-based
analogues of the corresponding val-printing functions. Note that the
Modula-2 printing code also calls cp_print_val_fields, and so is
updated to call the function function.
gdb/ChangeLog
2020-03-13 Tom Tromey <tom@tromey.com>
* m2-valprint.c (m2_value_print_inner): Use
cp_print_value_fields.
* cp-valprint.c (cp_print_value_fields): New function.
* c-valprint.c (c_value_print_struct): New function.
(c_value_print_inner): Use c_value_print_struct.
* c-lang.h (cp_print_value_fields): Declare.
Diffstat (limited to 'gdb/m2-valprint.c')
-rw-r--r-- | gdb/m2-valprint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/m2-valprint.c b/gdb/m2-valprint.c index 63d8c15..facd15e 100644 --- a/gdb/m2-valprint.c +++ b/gdb/m2-valprint.c @@ -605,9 +605,7 @@ m2_value_print_inner (struct value *val, struct ui_file *stream, int recurse, else if (m2_is_unbounded_array (type)) m2_print_unbounded_array (val, stream, recurse, options); else - cp_print_value_fields (type, type, 0, - address, stream, recurse, val, - options, NULL, 0); + cp_print_value_fields (val, stream, recurse, options, NULL, 0); break; case TYPE_CODE_SET: |