From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10569 invoked by alias); 6 Sep 2008 01:37:34 -0000 Received: (qmail 10560 invoked by uid 22791); 6 Sep 2008 01:37:34 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 06 Sep 2008 01:36:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id B0EDE2A9704; Fri, 5 Sep 2008 21:36:57 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vJeiRYKxdhX4; Fri, 5 Sep 2008 21:36:57 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 7946D2A96F6; Fri, 5 Sep 2008 21:36:57 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 44471E7ACD; Sat, 6 Sep 2008 03:36:55 +0200 (CEST) Date: Sat, 06 Sep 2008 01:37:00 -0000 From: Joel Brobecker To: uweigand@de.ibm.com Cc: gdb-patches@sourceware.org Subject: Re: [rfc][31/37] Eliminate builtin_type_ macros: Inferior call argument types Message-ID: <20080906013655.GL15267@adacore.com> References: <20080831175045.128504000@de.ibm.com> <20080831175137.488326000@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080831175137.488326000@de.ibm.com> User-Agent: Mutt/1.4.2.2i 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-09/txt/msg00119.txt.bz2 > a number of places use builtin_type_ macros to build up argument lists > for inferior function calls. However, they always use the routine > find_function_in_inferior first to find the function to be called. > This routine is able to determine the objfile that defines the function > to be called -- and the per-objfile architecture of that file should > be used to determine the default types for the inferior call. Oh la la, I see now why Daniel used the term "contorsions". Nothing much we can do about it, I guess, and a necessary thing to do, but I thought I'd mention it. -- Joel