From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1996 invoked by alias); 2 Sep 2008 12:48:00 -0000 Received: (qmail 1987 invoked by uid 22791); 2 Sep 2008 12:47:59 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Sep 2008 12:47:15 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 9E8CB98417; Tue, 2 Sep 2008 12:47:13 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 816FA981E8; Tue, 2 Sep 2008 12:47:13 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KaVHs-0005xo-Oz; Tue, 02 Sep 2008 08:47:12 -0400 Date: Tue, 02 Sep 2008 12:48:00 -0000 From: Daniel Jacobowitz To: uweigand@de.ibm.com Cc: gdb-patches@sourceware.org Subject: Re: [rfc][28/37] Eliminate builtin_type_ macros: Update infcall.c routines Message-ID: <20080902124712.GD21700@caradoc.them.org> Mail-Followup-To: uweigand@de.ibm.com, gdb-patches@sourceware.org References: <20080831175045.128504000@de.ibm.com> <20080831175135.489007000@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080831175135.489007000@de.ibm.com> User-Agent: Mutt/1.5.17 (2008-05-11) 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-09/txt/msg00016.txt.bz2 On Sun, Aug 31, 2008 at 07:51:13PM +0200, Ulrich Weigand wrote: > @@ -472,6 +469,9 @@ call_function_by_hand (struct value *fun > funaddr = find_function_addr (function, &values_type); > CHECK_TYPEDEF (values_type); > > + if (!values_type) > + values_type = builtin_type (gdbarch)->builtin_int; > + > /* Are we returning a value using a structure return (passing a > hidden argument pointing to storage) or a normal value return? > There are two cases: language-mandated structure return and CHECK_TYPEDEF -> gdb_assert (type). -- Daniel Jacobowitz CodeSourcery