binutils-gdb/gdb/testsuite/gdb.ada/array_of_variant
Tom Tromey 05fb05a947 Fix bug in dynamic type resolution
A customer-reported problem led us to a bug in dynamic type
resolution.  resolve_dynamic_struct will recursively call
resolve_dynamic_type_internal, passing it the sub-object for the
particular field being resolved.  While it offsets the address here,
it does not also offset the "valaddr" -- the array of bytes describing
the memory.

This patch fixes the bug, by offsetting both.  A test case is included
that can be used to reproduce the bug.
2021-10-19 13:03:58 -06:00
..
p.adb
pck.adb
pck.ads