Move val_prettyformat to valprint.h
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
Commit Message
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.
---
gdb/defs.h | 14 --------------
gdb/valprint.h | 11 +++++++++++
2 files changed, 11 insertions(+), 14 deletions(-)
Comments
>>>>> "Tom" == Tom Tromey via Gdb-patches <gdb-patches@sourceware.org> writes:
Tom> I stumbled across an ancient FIXME comment that was easy to fix --
Tom> val_prettyformat does not need to be in defs.h, and is easily moved to
Tom> valprint.h, where (despite what the comment says) it belongs.
Tom> Tested by rebuilding.
I'm checking this in.
Tom
@@ -410,20 +410,6 @@ enum info_proc_what
extern unsigned input_radix;
extern unsigned output_radix;
-/* * Possibilities for prettyformat parameters to routines which print
- things. Like enum language, this should be in value.h, but needs
- to be here for the same reason. FIXME: If we can eliminate this
- as an arg to LA_VAL_PRINT, then we can probably move it back to
- value.h. */
-
-enum val_prettyformat
- {
- Val_no_prettyformat = 0,
- Val_prettyformat,
- /* * Use the default setting which the user has specified. */
- Val_prettyformat_default
- };
-
/* * Optional native machine support. Non-native (and possibly pure
multi-arch) targets do not need a "nm.h" file. This will be a
symlink to one of the nm-*.h files, built by the `configure'
@@ -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