diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-08 12:43:47 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-06-26 14:53:17 -0600 |
commit | e0c547d14ae1d5c06b59178f4b1dd1f5e08b3feb (patch) | |
tree | 73fa0692198325dad0d96ddd3dae9ebd694df78c /gdb/ChangeLog | |
parent | 30aa13067f70ba1d11c35d13be753118c457842c (diff) | |
download | gdb-e0c547d14ae1d5c06b59178f4b1dd1f5e08b3feb.zip gdb-e0c547d14ae1d5c06b59178f4b1dd1f5e08b3feb.tar.gz gdb-e0c547d14ae1d5c06b59178f4b1dd1f5e08b3feb.tar.bz2 |
Move ptype/o printing code to typeprint.c
This moves the hole-printing support code for ptype/o from
c-typeprint.c to be methods on print_offset_data. This allows the
code to be used from non-C languages.
gdb/ChangeLog
2018-06-26 Tom Tromey <tom@tromey.com>
* typeprint.h (struct print_offset_data) <update, finish,
maybe_print_hole>: New methods.
<indentation>: New constant.
* typeprint.c (print_offset_data::indentation): Define.
(print_offset_data::maybe_print_hole, print_offset_data::update)
(print_offset_data::finish): Move from c-typeprint.c and rename.
* c-typeprint.c (OFFSET_SPC_LEN): Remove.
(print_spaces_filtered_with_print_options): Update.
(c_print_type_union_field_offset, maybe_print_hole)
(c_print_type_struct_field_offset): Move to typeprint.c and
rename.
(c_type_print_base_struct_union): Update.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index be8383e..677328b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,18 @@ +2018-06-26 Tom Tromey <tom@tromey.com> + + * typeprint.h (struct print_offset_data) <update, finish, + maybe_print_hole>: New methods. + <indentation>: New constant. + * typeprint.c (print_offset_data::indentation): Define. + (print_offset_data::maybe_print_hole, print_offset_data::update) + (print_offset_data::finish): Move from c-typeprint.c and rename. + * c-typeprint.c (OFFSET_SPC_LEN): Remove. + (print_spaces_filtered_with_print_options): Update. + (c_print_type_union_field_offset, maybe_print_hole) + (c_print_type_struct_field_offset): Move to typeprint.c and + rename. + (c_type_print_base_struct_union): Update. + 2018-06-25 Pedro Alves <palves@redhat.com> * gdbthread.h (thread_info_ref, delete_thread) |