diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2021-04-17 12:10:23 +0100 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2021-04-25 17:55:09 +0100 |
commit | 18bbba46a974d8b667f9b60c5a7d41bb3cb07369 (patch) | |
tree | a4b12e44320020ce5834da13326c0eed361e1d84 | |
parent | b22138f32f71d5a8d93e6409fb11f116892d544e (diff) | |
download | gdb-18bbba46a974d8b667f9b60c5a7d41bb3cb07369.zip gdb-18bbba46a974d8b667f9b60c5a7d41bb3cb07369.tar.gz gdb-18bbba46a974d8b667f9b60c5a7d41bb3cb07369.tar.bz2 |
gdb/typeprint.h: reorder struct declaration
Move the declaration of struct type_print_raw_options before struct
print_offset_data to ease upcoming changes. This is a helper commit
intended to make it easier to build a print_offset_data object from
configurations given by a type_print_raw_options.
gdb/ChangeLog:
* typeprint.h (struct type_print_options): Move before
print_offset_data.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/typeprint.h | 60 |
2 files changed, 35 insertions, 30 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6dee022..3e60116 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-04-25 Lancelot Six <lsix@lancelotsix.com> + + * typeprint.h (struct type_print_options): Move before + print_offset_data. + 2021-04-25 Joel Brobecker <brobecker@adacore.com> GDB 10.2 released. diff --git a/gdb/typeprint.h b/gdb/typeprint.h index 982034e..75204f6 100644 --- a/gdb/typeprint.h +++ b/gdb/typeprint.h @@ -26,6 +26,36 @@ struct ui_file; struct typedef_hash_table; struct ext_lang_type_printers; +struct type_print_options +{ + /* True means that no special printing flags should apply. */ + unsigned int raw : 1; + + /* True means print methods in a class. */ + unsigned int print_methods : 1; + + /* True means print typedefs in a class. */ + unsigned int print_typedefs : 1; + + /* True means to print offsets, a la 'pahole'. */ + unsigned int print_offsets : 1; + + /* The number of nested type definitions to print. -1 == all. */ + int print_nested_type_limit; + + /* If not NULL, a local typedef hash table used when printing a + type. */ + typedef_hash_table *local_typedefs; + + /* If not NULL, a global typedef hash table used when printing a + type. */ + typedef_hash_table *global_typedefs; + + /* The list of type printers associated with the global typedef + table. This is intentionally opaque. */ + struct ext_lang_type_printers *global_printers; +}; + struct print_offset_data { /* The offset to be applied to bitpos when PRINT_OFFSETS is true. @@ -73,36 +103,6 @@ private: const char *for_what); }; -struct type_print_options -{ - /* True means that no special printing flags should apply. */ - unsigned int raw : 1; - - /* True means print methods in a class. */ - unsigned int print_methods : 1; - - /* True means print typedefs in a class. */ - unsigned int print_typedefs : 1; - - /* True means to print offsets, a la 'pahole'. */ - unsigned int print_offsets : 1; - - /* The number of nested type definitions to print. -1 == all. */ - int print_nested_type_limit; - - /* If not NULL, a local typedef hash table used when printing a - type. */ - typedef_hash_table *local_typedefs; - - /* If not NULL, a global typedef hash table used when printing a - type. */ - typedef_hash_table *global_typedefs; - - /* The list of type printers associated with the global typedef - table. This is intentionally opaque. */ - struct ext_lang_type_printers *global_printers; -}; - extern const struct type_print_options type_print_raw_options; /* A hash table holding typedef_field objects. This is more |