aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2016-04-26 16:45:21 -0600
committerTom Tromey <tom@tromey.com>2016-05-17 12:02:00 -0600
commit00272ec4b0cc22c1b9d60d39ce7bf5b2d5512582 (patch)
tree7e30c68e44022dc571b22761df01573cad6b8dce /gdb/f-valprint.c
parentdcd1f97951b432032fd0728992b1384064663701 (diff)
downloadgdb-00272ec4b0cc22c1b9d60d39ce7bf5b2d5512582.zip
gdb-00272ec4b0cc22c1b9d60d39ce7bf5b2d5512582.tar.gz
gdb-00272ec4b0cc22c1b9d60d39ce7bf5b2d5512582.tar.bz2
Add array start and end strings to generic_val_print_decorations
For Rust value-printing, I wanted to use generic_val_print_array, but I also wanted to control the starting and ending strings. This patch adds new strings to generic_val_print_decorations, updates generic_val_print_array to use them, and updates all the existing instances of generic_val_print_decorations. 2016-05-17 Tom Tromey <tom@tromey.com> * valprint.h (struct generic_val_print_array) <array_start, array_end>: New fields. * valprint.c (generic_val_print_array): Add "decorations" parameter. Use "array_start", "array_end". (generic_val_print) <TYPE_CODE_ARRAY>: Update. * p-valprint.c (p_decorations): Update. * m2-valprint.c (m2_decorations): Update. * f-valprint.c (f_decorations): Update. * c-valprint.c (c_decorations): Update.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r--gdb/f-valprint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index 71bd2c3..1264737 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -203,6 +203,8 @@ static const struct generic_val_print_decorations f_decorations =
".TRUE.",
".FALSE.",
"VOID",
+ "{",
+ "}"
};
/* See val_print for a description of the various parameters of this