Commit dbe0610b authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Fix printing function signature type for circular references on return type.

parent 51a9b227
...@@ -676,8 +676,16 @@ int types_print_type(const struct dbg_type* type, BOOL details) ...@@ -676,8 +676,16 @@ int types_print_type(const struct dbg_type* type, BOOL details)
break; break;
case SymTagFunctionType: case SymTagFunctionType:
types_get_info(type, TI_GET_TYPE, &subtype.id); types_get_info(type, TI_GET_TYPE, &subtype.id);
subtype.module = type->module; /* is the returned type the same object as function sig itself ? */
types_print_type(&subtype, FALSE); if (subtype.id != type->id)
{
subtype.module = type->module;
types_print_type(&subtype, FALSE);
}
else
{
dbg_printf("<ret_type=self>");
}
dbg_printf(" (*%s)(", name); dbg_printf(" (*%s)(", name);
if (types_get_info(type, TI_GET_CHILDRENCOUNT, &count)) if (types_get_info(type, TI_GET_CHILDRENCOUNT, &count))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment