[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:
parent
1750958111
commit
e3786105c0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue