This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Small fixes for infcmd.c
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb-patches at sourceware dot org
- Date: Wed, 17 Aug 2005 17:08:39 +0200
- Subject: [commit] Small fixes for infcmd.c
If that CHECK_TYPEDEF is really necessary it is in the wrong location,
so I moved it. I also noticed that a case for
RETURN_VALUE_ABI_PRESERVES_ADDRESS was missing.
Committed,
Matk
2005-08-17 Mark Kettenis <kettenis@gnu.org>
* infcmd.c (print_return_value): Move CHECK_TYPEDEF up. Deal with
RETURN_VALUE_ABI_PRESERVED_ADDRESS.
Index: infcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/infcmd.c,v
retrieving revision 1.139
diff -u -p -r1.139 infcmd.c
--- infcmd.c 6 Jul 2005 14:54:33 -0000 1.139
+++ infcmd.c 17 Aug 2005 15:04:44 -0000
@@ -1111,6 +1111,7 @@ print_return_value (int struct_return, s
struct ui_stream *stb;
struct value *value;
+ CHECK_TYPEDEF (value_type);
gdb_assert (TYPE_CODE (value_type) != TYPE_CODE_VOID);
/* FIXME: 2003-09-27: When returning from a nested inferior function
@@ -1124,8 +1125,8 @@ print_return_value (int struct_return, s
{
case RETURN_VALUE_REGISTER_CONVENTION:
case RETURN_VALUE_ABI_RETURNS_ADDRESS:
+ case RETURN_VALUE_ABI_PRESERVES_ADDRESS:
value = allocate_value (value_type);
- CHECK_TYPEDEF (value_type);
gdbarch_return_value (current_gdbarch, value_type, stop_registers,
value_contents_raw (value), NULL);
break;