From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20126 invoked by alias); 7 Oct 2004 09:09:19 -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 19941 invoked from network); 7 Oct 2004 09:09:17 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 7 Oct 2004 09:09:17 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i9799HxA027263 for ; Thu, 7 Oct 2004 05:09:17 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9799Hr19195 for ; Thu, 7 Oct 2004 05:09:17 -0400 Received: from cygbert.vinschen.de (vpn50-15.rdu.redhat.com [172.16.50.15]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id i9799FVb021782 for ; Thu, 7 Oct 2004 05:09:15 -0400 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 63F5E58092; Thu, 7 Oct 2004 11:10:16 +0200 (CEST) Date: Thu, 07 Oct 2004 09:09:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: [RFA] infcall.c: Use correct macro Message-ID: <20041007091016.GL6702@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-SW-Source: 2004-10/txt/msg00128.txt.bz2 Hi, the below patch fixes the erroneous usage of a SYMBOL_ macro on a value type. Ok, to apply? Corinna * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro. Index: infcall.c =================================================================== RCS file: /cvs/src/src/gdb/infcall.c,v retrieving revision 1.57 diff -u -p -r1.57 infcall.c --- infcall.c 11 Sep 2004 10:24:47 -0000 1.57 +++ infcall.c 6 Oct 2004 18:19:22 -0000 @@ -307,7 +307,7 @@ call_function_by_hand (struct value *fun CORE_ADDR funaddr; int using_gcc; /* Set to version of gcc in use, or zero if not gcc */ CORE_ADDR real_pc; - struct type *ftype = check_typedef (SYMBOL_TYPE (function)); + struct type *ftype = check_typedef (VALUE_TYPE (function)); CORE_ADDR bp_addr; struct regcache *caller_regcache; struct cleanup *caller_regcache_cleanup; -- Corinna Vinschen Cygwin Project Co-Leader Red Hat, Inc.