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 169d79e787c711c465ec942d5ee35a3be5a3bb6c..257638b90586b449363f44593998b70e2b28352d 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 9dc7d8598de58bbce1373de224e5b004c542b9c2..723f1e57d0e85cf2a55c2fa76cafd0ef638fe414 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