From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24125 invoked by alias); 26 Sep 2003 11:15:48 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24117 invoked from network); 26 Sep 2003 11:15:47 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 26 Sep 2003 11:15:47 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8QBFk114779 for ; Fri, 26 Sep 2003 07:15:46 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8QBFjD08351 for ; Fri, 26 Sep 2003 07:15:45 -0400 Received: from cygbert.vinschen.de (vpn50-38.rdu.redhat.com [172.16.50.38]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h8QBFiw28672 for ; Fri, 26 Sep 2003 04:15:44 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 6DBA858319; Fri, 26 Sep 2003 13:15:43 +0200 (CEST) Date: Fri, 26 Sep 2003 11:15:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: Re: SH follow up, part 2 (was Re: [RFA] sh-tdep.c: Follow up patch to implement two different ABIs) Message-ID: <20030926111543.GH22787@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com References: <20030917161127.GM9981@cygbert.vinschen.de> <16240.45203.260059.116019@localhost.redhat.com> <20030924103916.GH9981@cygbert.vinschen.de> <16243.25635.470137.318341@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16243.25635.470137.318341@localhost.redhat.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-09/txt/msg00589.txt.bz2 On Thu, Sep 25, 2003 at 05:54:43PM -0400, Elena Zannoni wrote: > Corinna Vinschen writes: > > Currently there's no way to differ between these two ABIs automatically > > though that might change at some later point. The user has to change > > the ABI on the command line by hand. The compiler option was -mhitachi, > > gcc is just changing to -mrenesas to reflect the company name change. > > Hmm but then the user can set the calling convention to the wrong one. > Also the finish command, I am afraid, will be confused. There should > be something detecting the calling convention from the executable. Is > the info recorded in the file anywhere? I.e. would readelf/objdump > show it? No. I started a discussion about this on gdb four weeks ago but at this point there is no chance to find this out. The automatism requires some work in gcc and gdb which is not done yet and which is not target dependent. It's another step. This patch only contains the first step necessary to allow to debug two ABIs for sh. It requires user intervention. If the changes for automating the ABI stuff are done, the next target dependent step is to add the "auto" flag and to make it the default. > These descriptions should be comments in the file, the more verbiage > the better. The comments are in the code. > I don't have anything in particular against these patches, but I'd like > to have a better idea about how to solve this calling convention issue > before the changes go in. http://sources.redhat.com/ml/gdb/2003-08/msg00252.html Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc.