ctf: structure_type__encode shouldn encode only DW_TAG_member

C++ is not properly supported in CTF anyway... And this was
causing a bug, so don't encode DW_TAG_inheritance entries.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-09-11 14:09:49 -03:00
parent fe101bdf3d
commit a8b3f74b90
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ static int structure_type__encode(struct tag *self, uint16_t core_id,
const bool is_short = type->size < CTF_SHORT_MEMBER_LIMIT;
struct class_member *pos;
type__for_each_member(type, pos) {
type__for_each_data_member(type, pos) {
if (is_short)
ctf__add_short_member(ctf, pos->name, pos->tag.type,
pos->bit_offset, &position);