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 struct_return think-o in print_return_value


Hello,

Noticed this, the struct_return test is backward.

committed,
Andrew
2004-06-13  Andrew Cagney  <cagney@gnu.org>

	* infcmd.c (print_return_value): Fix logic, allow
	DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.

Index: infcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/infcmd.c,v
retrieving revision 1.115
diff -p -u -r1.115 infcmd.c
--- infcmd.c	12 Jun 2004 18:02:30 -0000	1.115
+++ infcmd.c	13 Jun 2004 16:58:00 -0000
@@ -1109,7 +1109,7 @@ print_return_value (int struct_return, s
 	  internal_error (__FILE__, __LINE__, "bad switch");
 	}
     }
-  else if (!struct_return && DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P ())
+  else if (struct_return && DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P ())
     {
       CORE_ADDR addr = DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS (stop_registers);
       if (!addr)

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