From 9cedbfec956acb99c7b6b82f8637839ebb415d86 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 6 Nov 2003 19:09:46 +0000 Subject: [PATCH] 2003-11-06 Andrew Cagney * stack.c (return_command): Warn when STRUCT_CONVENTION, and not REGISTER_CONVENTION. --- gdb/ChangeLog | 5 +++++ gdb/stack.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 169d79e787c..257638b9058 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-11-06 Andrew Cagney + + * stack.c (return_command): Warn when STRUCT_CONVENTION, and not + REGISTER_CONVENTION. + 2003-11-06 Daniel Jacobowitz * breakpoint.c (insert_bp_location, allocate_bp_location): Make diff --git a/gdb/stack.c b/gdb/stack.c index 9dc7d8598de..723f1e57d0e 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -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 -- 2.30.2