From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19262 invoked by alias); 22 Oct 2003 23:36:28 -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 19255 invoked from network); 22 Oct 2003 23:36:28 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 22 Oct 2003 23:36:28 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 40D192B89 for ; Wed, 22 Oct 2003 19:36:27 -0400 (EDT) Message-ID: <3F97147B.9020104@redhat.com> Date: Wed, 22 Oct 2003 23:36:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: Re: [obish] Add target to convert_from_func_ptr_addr References: <3F955812.7000106@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00665.txt.bz2 > Hello, > > This patch simply makes the implicit "struct target_ops" parameter to convert_from_func_ptr_addr explicit (it also makes it pure multi-arch). It doesn't try to update any actual architecture code so I think this is pretty save and will commit in a few hours (after my cross builds finish). > > By doing this, the new architecture bfd_entry_point previous proposed in: > > [ppc64-linux] gdbarch hook to find true execution entry point > http://sources.redhat.com/ml/gdb-patches/2003-06/msg00362.html > [ppc64-linux]: correctly find a BFD's code entry point address > http://sources.redhat.com/ml/gdb-patches/2003-06/msg00437.html > > made entirely redundant. ya! I've checked this in. Andrew > 2003-10-21 Andrew Cagney > > * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure > multi-arch method, add "targ" parameter. > (struct target_ops): Declare. > * gdbarch.h, gdbarch.c: Re-generate. > * Makefile.in (c-valprint.o): Update dependencies. > * arch-utils.h: Update copyright. > (convert_from_func_ptr_addr_identity): Declare. > * arch-utils.c (convert_from_func_ptr_addr_identity): New function. > * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate. > * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update. > * infcall.c (find_function_addr, call_function_by_hand): Update. > * c-valprint.c: Include "target.h". > (print_function_pointer_address): Update. >