summaryrefslogtreecommitdiffstats
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-04-25 11:28:35 +0000
committerMark Kettenis <kettenis@gnu.org>2004-04-25 11:28:35 +0000
commit3e9a183cb27427e4a7bae56338d330d1de4131f4 (patch)
treef0d3ca030269ca46a342fe83dd7711f54c85886a /gdb/stack.c
parent4030e8f62467c29b782aa2480e1e452b8e458699 (diff)
downloadppe42-binutils-3e9a183cb27427e4a7bae56338d330d1de4131f4.tar.gz
ppe42-binutils-3e9a183cb27427e4a7bae56338d330d1de4131f4.zip
* stack.c (return_command): Use CHECK_TYPEDEF on the return type.
Fixes PR tdep/1623 and PR tdep/1624.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index d2a25c1b07..9120e99fd8 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -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
OpenPOWER on IntegriCloud