From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8548 invoked by alias); 6 Apr 2009 06:20:19 -0000 Received: (qmail 8532 invoked by uid 22791); 6 Apr 2009 06:20:18 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from ugmailsb.ugent.be (HELO ugmailsb.ugent.be) (157.193.71.46) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Apr 2009 06:20:12 +0000 Received: from localhost (localhost [127.0.0.1]) by ugmailsb.ugent.be (Postfix) with ESMTP id 2AAD92AAD42 for ; Mon, 6 Apr 2009 08:20:10 +0200 (CEST) Received: from ugmailsb.ugent.be ([127.0.0.1]) by localhost (ugmailsb.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qsQw9QAgxB6v for ; Mon, 6 Apr 2009 08:20:09 +0200 (CEST) Received: from cypress.ugent.be (cypress.ugent.be [157.193.71.48]) by ugmailsb.ugent.be (Postfix) with ESMTP id D5E452AACEC for ; Mon, 6 Apr 2009 08:20:09 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAMI72Umdwc4w/2dsb2JhbADIIoQPBg Received: from mail.elis.ugent.be ([157.193.206.48]) by relayrec.ugent.be with ESMTP; 06 Apr 2009 08:20:09 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.elis.UGent.be (Postfix) with ESMTP id 787C22BAC9D; Mon, 6 Apr 2009 08:19:18 +0200 (CEST) Received: from bigmac.elis.UGent.be (bigmac.elis.UGent.be [157.193.206.33]) by mail.elis.UGent.be (Postfix) with ESMTP id 647082BAC93; Mon, 6 Apr 2009 08:19:18 +0200 (CEST) Cc: gdb-patches ml Message-Id: <0A3D7BB8-81EC-4D0E-BF13-D408A988D439@elis.ugent.be> From: Jonas Maebe To: Daniel Jacobowitz In-Reply-To: <20090406025401.GA29656@caradoc.them.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Borland fastcall support (i386) Date: Mon, 06 Apr 2009 06:20:00 -0000 References: <390385D8-5B6E-4844-8940-4002C012140F@elis.ugent.be> <20090406025401.GA29656@caradoc.them.org> 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: 2009-04/txt/msg00101.txt.bz2 On 06 Apr 2009, at 04:54, Daniel Jacobowitz wrote: > On Sun, Apr 05, 2009 at 11:28:57PM +0200, Jonas Maebe wrote: >> I've continued working on gdb to also support calling Pascal >> methods, and >> I've run a bit into a hitch: the calling_convention field is part >> of a >> union that also contains cplus_stuff (inside main_type in >> gdbtypes.h), and >> I need both for methods using a non-standard calling convention. > > Why is cplus_stuff used in this case? You're right, I was mixing two things. There is indeed no conflict. So all that needs to be done is extend smash_to_method_type() with an extra parameter for the calling convention. Jonas