aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-09-24 14:06:52 -0600
committerTom Tromey <tromey@adacore.com>2021-10-19 13:03:58 -0600
commit05fb05a94729473cb04b1299fe5c36e06525c78f (patch)
treeaedea01744e7289d9faef886a9ab2a2931edbdca /gdb/ada-lang.c
parentd7c68312bdeca52e242326e5cf155e0aa63268bb (diff)
downloadgdb-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