aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-05 12:30:08 -0600
committerTom Tromey <tromey@adacore.com>2023-09-18 12:21:07 -0600
commit4eaa39a22ddcac55f3b0dbbf5f4200ebff1be343 (patch)
tree8c611eb64272ab0d51ce05900b420ab9eb199dd1 /gdb/valprint.h
parentcf2ab5ef0b716dea512d85276c484fce758fa5d4 (diff)
downloadfsf-binutils-gdb-4eaa39a22ddcac55f3b0dbbf5f4200ebff1be343.zip
fsf-binutils-gdb-4eaa39a22ddcac55f3b0dbbf5f4200ebff1be343.tar.gz
fsf-binutils-gdb-4eaa39a22ddcac55f3b0dbbf5f4200ebff1be343.tar.bz2
Move val_prettyformat to valprint.h
I stumbled across an ancient FIXME comment that was easy to fix -- val_prettyformat does not need to be in defs.h, and is easily moved to valprint.h, where (despite what the comment says) it belongs. Tested by rebuilding.
Diffstat (limited to 'gdb/valprint.h')
-rw-r--r--gdb/valprint.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/valprint.h b/gdb/valprint.h
index cf5e2f2..0a88780 100644
--- a/gdb/valprint.h
+++ b/gdb/valprint.h
@@ -22,6 +22,17 @@
#include "cli/cli-option.h"
+/* Possibilities for prettyformat parameters to routines which print
+ things. */
+
+enum val_prettyformat
+ {
+ Val_no_prettyformat = 0,
+ Val_prettyformat,
+ /* * Use the default setting which the user has specified. */
+ Val_prettyformat_default
+ };
+
/* This is used to pass formatting options to various value-printing
functions. */
struct value_print_options