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

Re: [RFA] Support for multiple calling conventions, patch 3/3: Use calling convention information to handle differnt ABIs on sh target


On Apr 17 12:28, Daniel Jacobowitz wrote:
> On Tue, Apr 15, 2008 at 01:58:42PM +0200, Corinna Vinschen wrote:
> > Ok to apply?
> 
> This is OK with two changes.  One is that Renesas should always be
> capitalized in comments.  The other is that each new CLI command
> needs to be added to the manual, probably in the "Super-H" node.
> And it should probably get a NEWS entry too.

Is the following documentation patch ok?


Thanks,
Corinna


Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.483
diff -u -p -r1.483 gdb.texinfo
--- doc/gdb.texinfo	20 Apr 2008 09:06:43 -0000	1.483
+++ doc/gdb.texinfo	21 Apr 2008 15:29:53 -0000
@@ -15649,6 +15649,24 @@ commands:
 @item regs
 @kindex regs@r{, Super-H}
 Show the values of all Super-H registers.
+
+@item set sh calling-convention @var{convention}
+@cindex Set SH Calling convention
+Set the calling-convention used when calling functions from @value{GDBN}.
+Allowed values are @samp{gcc}, which is the default setting, and @samp{renesas}.
+In the @samp{gcc} setting, functions are called using the gcc calling
+convention.  If the DWARF-2 information of the called function specifies
+that the function is following the Renesas calling convention, the function
+is called using the renesas calling convention.  If the calling convention
+is set to @samp{renesas}, the Renesas calling convention is always used,
+regardless of the Dwarf-2 information.  This can be used to override the
+default of @samp{gcc} if debug information is missing, or the compiler
+does not emit the Dwarf-2 calling convention entry for a function.
+
+@item show sh calling-convention
+@cindex Show SH Calling convention
+Show the current calling convention setting.
+
 @end table
 

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


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