]> sourceware.org Git - systemtap.git/commit
PR10538: Improve location lookup for unions
authorJosh Stone <jistone@redhat.com>
Wed, 19 Aug 2009 20:30:31 +0000 (13:30 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 19 Aug 2009 20:49:42 +0000 (13:49 -0700)
commitb57ba9b863f0bd99f70d9e4d64c5a11ec75f7317
tree897f926a52f7f1e74b09ed2eba83ca365ddad436
parent67e8280177ba8c812587685b66883bb1ea052af6
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.
dwflpp.cxx
This page took 0.025319 seconds and 5 git commands to generate.