2003-11-06 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Thu, 6 Nov 2003 19:09:46 +0000 (19:09 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 6 Nov 2003 19:09:46 +0000 (19:09 +0000)
* stack.c (return_command): Warn when STRUCT_CONVENTION, and not
REGISTER_CONVENTION.

gdb/ChangeLog
gdb/stack.c

index 169d79e..257638b 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-06  Andrew Cagney  <cagney@redhat.com>
+
+       * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
+       REGISTER_CONVENTION.
+
 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
 
        * breakpoint.c (insert_bp_location, allocate_bp_location): Make
index 9dc7d85..723f1e5 100644 (file)
@@ -1861,7 +1861,7 @@ return_command (char *retval_exp, int from_tty)
        {
          if (gdbarch_return_value (current_gdbarch, return_type,
                                    NULL, NULL, NULL)
-             == RETURN_VALUE_REGISTER_CONVENTION)
+             == RETURN_VALUE_STRUCT_CONVENTION)
            return_value = NULL;
        }
       else