This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]