From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29045 invoked by alias); 21 Apr 2008 15:30:31 -0000 Received: (qmail 29036 invoked by uid 22791); 21 Apr 2008 15:30:31 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 21 Apr 2008 15:30:11 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 90FEA6D4312; Mon, 21 Apr 2008 17:30:08 +0200 (CEST) Date: Mon, 21 Apr 2008 15:42:00 -0000 From: Corinna Vinschen To: gdb-patches@sourceware.org Subject: Re: [RFA] Support for multiple calling conventions, patch 3/3: Use calling convention information to handle differnt ABIs on sh target Message-ID: <20080421153008.GV23852@calimero.vinschen.de> Reply-To: gdb-patches@sourceware.org Mail-Followup-To: gdb-patches@sourceware.org References: <20080415115840.GA22994@calimero.vinschen.de> <20080417162802.GI17488@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080417162802.GI17488@caradoc.them.org> User-Agent: Mutt/1.5.16 (2007-06-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00435.txt.bz2 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