forked from Imagelibrary/binutils-gdb
* stack.c (return_command): Use CHECK_TYPEDEF on the return type.
Fixes PR tdep/1623 and PR tdep/1624.
This commit is contained in:
@@ -1844,6 +1844,7 @@ return_command (char *retval_exp, int from_tty)
|
||||
return_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (thisfun));
|
||||
if (return_type == NULL)
|
||||
return_type = builtin_type_int;
|
||||
CHECK_TYPEDEF (return_type);
|
||||
return_value = value_cast (return_type, return_value);
|
||||
|
||||
/* Make sure the value is fully evaluated. It may live in the
|
||||
|
||||
Reference in New Issue
Block a user