]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Introduce type::is_array_like and value_to_array
authorTom Tromey <tromey@adacore.com>
Mon, 7 Aug 2023 12:35:51 +0000 (06:35 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Sep 2023 17:03:00 +0000 (11:03 -0600)
commit84914f598e5d48b78243b7e523804a28a4baf1eb
tree6e94a4e9e76cd3e358c051df710dc6a63ebb6922
parentcf1eca3cbbfe8b2092d867023df7dac4d00fa4ec
Introduce type::is_array_like and value_to_array

This adds the type::is_array_like method and the value_to_array
function.

The former can be used to see whether a given type is known to be
"array-like".  This is the currently the case for certain
compiler-generated structure types; in particular both the Ada and
Rust compilers do this.
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/valarith.c
gdb/value.h