]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[General] More capability type handling (merge with others)
authorLuis Machado <luis.machado@arm.com>
Thu, 2 Jul 2020 19:31:11 +0000 (16:31 -0300)
committerLuis Machado <luis.machado@linaro.org>
Tue, 20 Oct 2020 18:05:29 +0000 (15:05 -0300)
commit5052b3e23372274399e1e56870c78eaa14172d7f
tree5841d078f85d219b5ddbabc6a1dbb0ff25db7ccb
parentefb06fe149c75d41f09201026c774943b5c7e871
[General] More capability type handling (merge with others)

Teach more parts of GDB how to handle capabilities properly, add a function
to print capabilities in their natural format and initialize capability types
properly.

gdb/ChangeLog:

2020-10-20  Luis Machado  <luis.machado@arm.com>

* c-typeprint.c (c_type_print_varspec_prefix)
(c_type_print_varspec_suffix): Handle capability type.
* dwarf2/read.c (read_base_type): Call init_capability_type for
capabilities.
* gdbtypes.c (init_capability_type): New function.
(type_align): Handle capability type.
(recursive_dump_type): Likewise.
(arch_capability_type): New function.
(gdbtypes_post_init): Call arch_capability_type for capability
types.
* gdbtypes.h (init_capability_type, arch_capability_type):  New
prototypes.
* valprint.c: Include gdbsupport/capability.h.
(generic_value_print_capability): New function.
(generic_value_print): Handle capability types.
gdb/ChangeLog
gdb/c-typeprint.c
gdb/dwarf2/read.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/valprint.c