diff options
author | Tom Tromey <tromey@adacore.com> | 2021-09-24 14:06:52 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-10-19 13:03:58 -0600 |
commit | 05fb05a94729473cb04b1299fe5c36e06525c78f (patch) | |
tree | aedea01744e7289d9faef886a9ab2a2931edbdca /gdb/ada-lang.c | |
parent | d7c68312bdeca52e242326e5cf155e0aa63268bb (diff) | |
download | gdb-05fb05a94729473cb04b1299fe5c36e06525c78f.zip gdb-05fb05a94729473cb04b1299fe5c36e06525c78f.tar.gz gdb-05fb05a94729473cb04b1299fe5c36e06525c78f.tar.bz2 |
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.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions