RFA: Document RETURN_VALUE_ON_STACK
Jim Blandy
jimb@zwingli.cygnus.com
Tue Apr 18 12:54:00 GMT 2000
Is this okay?
Index: gdbint.texinfo
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/doc/gdbint.texinfo,v
retrieving revision 1.151
diff -c -c -r1.151 gdbint.texinfo
*** gdbint.texinfo 2000/04/16 14:54:43 1.151
--- gdbint.texinfo 2000/04/18 19:53:19
***************
*** 1875,1880 ****
--- 1875,1888 ----
form.
@xref{Target Architecture Definition, , Using Different Register and Memory Data Representations}.
+ @item RETURN_VALUE_ON_STACK(@var{type})
+ Return non-zero if values of type TYPE are returned on the stack, using
+ the ``struct convention''. GDB assumes that structures, unions, arrays
+ passed by value (which never happens in C), and any other types this
+ predicate likes, might be returned in a struct-like fashion. See the
+ function @code{using_struct_return} in @file{values.c} to see how this
+ gets used together with @code{USE_STRUCT_CONVENTION}.
+
@item SOFTWARE_SINGLE_STEP_P
Define this as 1 if the target does not have a hardware single-step
mechanism. The macro @code{SOFTWARE_SINGLE_STEP} must also be defined.
More information about the Gdb-patches
mailing list