This is the mail archive of the gdb-patches@sourceware.cygnus.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]

RFA: Document RETURN_VALUE_ON_STACK



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.

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