[LIB]: Handle void typedefs

Oh the horror, found in a proprietary kernel module:

typedef void * PVOID;

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-01-16 12:19:06 -02:00
parent 1750958111
commit e3786105c0
1 changed files with 6 additions and 0 deletions

View File

@ -342,7 +342,13 @@ static void typedef__print(const struct tag *tag_self, const struct cu *cu)
switch (type->tag) {
case DW_TAG_pointer_type:
if (type->type == 0) /* void pointer */
break;
ptr_type = cu__find_tag_by_id(cu, type->type);
if (ptr_type == NULL) {
tag__type_not_found(type, cu);
return;
}
if (ptr_type->tag != DW_TAG_subroutine_type)
break;
type = ptr_type;