ctf_loader: parse function type parameters

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2008-10-07 21:13:56 -03:00
parent ede353e099
commit 79f6c3fe40
1 changed files with 5 additions and 1 deletions

View File

@ -472,7 +472,11 @@ static int create_new_subroutine_type(struct ctf_state *sp, void *ptr,
INIT_LIST_HEAD(&self->lexblock.tags);
for (i = 0; i < vlen; i++) {
//fprintf(stdout, "0x%04x", ctf__get16(sp->ctf, &args[i]));
struct parameter *p = zalloc(sizeof(*p));
p->tag.tag = DW_TAG_formal_parameter;
p->tag.type = ctf__get16(sp->ctf, &args[i]);
ftype__add_parameter(&self->proto, p);
}
vlen *= sizeof(*args);