* stack.c (return_command): Use CHECK_TYPEDEF on the return type.
authorMark Kettenis <kettenis@gnu.org>
Sun, 25 Apr 2004 11:28:35 +0000 (11:28 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 25 Apr 2004 11:28:35 +0000 (11:28 +0000)
Fixes PR tdep/1623 and PR tdep/1624.

gdb/ChangeLog
gdb/stack.c

index 92ffb29..1ea2e66 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-25  Mark Kettenis  <kettenis@gnu.org>
+
+       * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
+       Fixes PR tdep/1623 and PR tdep/1624.
+
 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
 
        * xmodem.h, xmodem.c: Remove files.
index d2a25c1..9120e99 100644 (file)
@@ -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