This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Fix "can't find location" logic
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 06 Nov 2003 14:11:39 -0500
- Subject: [commit] Fix "can't find location" logic
FYI,
I've committed the attached. It had one of the cases for deciding
if/when a struct value could be returned 180 degrees out.
Andrew
2003-11-06 Andrew Cagney <cagney@redhat.com>
* stack.c (return_command): Warn when STRUCT_CONVENTION, and not
REGISTER_CONVENTION.
Index: stack.c
===================================================================
RCS file: /cvs/src/src/gdb/stack.c,v
retrieving revision 1.93
diff -u -r1.93 stack.c
--- stack.c 5 Nov 2003 16:42:34 -0000 1.93
+++ stack.c 6 Nov 2003 19:08:10 -0000
@@ -1861,7 +1861,7 @@
{
if (gdbarch_return_value (current_gdbarch, return_type,
NULL, NULL, NULL)
- == RETURN_VALUE_REGISTER_CONVENTION)
+ == RETURN_VALUE_STRUCT_CONVENTION)
return_value = NULL;
}
else