diff options
author | Josh Stone <jistone@redhat.com> | 2009-08-19 13:30:31 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-19 13:49:42 -0700 |
commit | b57ba9b863f0bd99f70d9e4d64c5a11ec75f7317 (patch) | |
tree | 897f926a52f7f1e74b09ed2eba83ca365ddad436 /tapsets.cxx | |
parent | 67e8280177ba8c812587685b66883bb1ea052af6 (diff) | |
download | systemtap-steved-b57ba9b863f0bd99f70d9e4d64c5a11ec75f7317.tar.gz systemtap-steved-b57ba9b863f0bd99f70d9e4d64c5a11ec75f7317.tar.xz systemtap-steved-b57ba9b863f0bd99f70d9e4d64c5a11ec75f7317.zip |
PR10538: Improve location lookup for unions
We had a bug that the starting call to find_struct_member used the same
memory for the parentdie and the resulting member. If parentdie is a
union, then the first member probably won't have a location, and we
actually assert that it must be a union. Since we wrote the result in
the same memory, we lost the real info about the parent, and so the
assertion failed.
* dwflpp.cxx (dwflpp::translate_components): Use distinct memory for the
parent and resulting member in the call to find_struct_member.
(dwflpp::find_struct_member): Remove the needless parentdie copy.
Diffstat (limited to 'tapsets.cxx')
0 files changed, 0 insertions, 0 deletions