From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3775 invoked by alias); 9 Apr 2004 05:31:21 -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 3762 invoked from network); 9 Apr 2004 05:31:19 -0000 Received: from unknown (HELO pippin.tausq.org) (64.81.244.94) by sources.redhat.com with SMTP; 9 Apr 2004 05:31:19 -0000 Received: by pippin.tausq.org (Postfix, from userid 1000) id EEDF8CD28A; Thu, 8 Apr 2004 22:59:22 -0700 (PDT) Date: Fri, 09 Apr 2004 05:31:00 -0000 From: Randolph Chung To: gdb-patches@sources.redhat.com Subject: [patch] more hppa cleanups :) Message-ID: <20040409055922.GO750@tausq.org> Reply-To: Randolph Chung Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG: for GPG key, see http://www.tausq.org/gpg.txt User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-04/txt/msg00210.txt.bz2 Nothing exciting, just more cleanups :) ok to commit? thanks randolph 2004-04-08 Randolph Chung * hppa-tdep.c (hppa_reg_struct_has_addr): Rename to hppa_use_struct_convention. (hppa_skip_prologue, hppa_skip_trampoline_code, hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline, hppa_cannot_store_register, hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc): Make static. (hppa_gdbarch_init): Set gdbarch_use_struct_convention --- gdb/gdb/hppa-tdep.c.orig2 2004-04-08 22:03:40.896087672 -0700 +++ gdb/gdb/hppa-tdep.c 2004-04-08 22:26:18.125757400 -0700 @@ -123,17 +123,17 @@ static void record_text_segment_lowaddr (bfd *, asection *, void *); /* FIXME: brobecker 2002-11-07: We will likely be able to make the following functions static, once we hppa is partially multiarched. */ -int hppa_reg_struct_has_addr (int gcc_p, struct type *type); -CORE_ADDR hppa_skip_prologue (CORE_ADDR pc); -CORE_ADDR hppa_skip_trampoline_code (CORE_ADDR pc); -int hppa_in_solib_call_trampoline (CORE_ADDR pc, char *name); -int hppa_in_solib_return_trampoline (CORE_ADDR pc, char *name); +static int hppa_use_struct_convention (int gcc_p, struct type *type); +static CORE_ADDR hppa_skip_prologue (CORE_ADDR pc); +static CORE_ADDR hppa_skip_trampoline_code (CORE_ADDR pc); +static int hppa_in_solib_call_trampoline (CORE_ADDR pc, char *name); +static int hppa_in_solib_return_trampoline (CORE_ADDR pc, char *name); int hppa_pc_requires_run_before_use (CORE_ADDR pc); int hppa_instruction_nullified (void); -int hppa_cannot_store_register (int regnum); -CORE_ADDR hppa_smash_text_address (CORE_ADDR addr); -CORE_ADDR hppa_target_read_pc (ptid_t ptid); -void hppa_target_write_pc (CORE_ADDR v, ptid_t ptid); +static int hppa_cannot_store_register (int regnum); +static CORE_ADDR hppa_smash_text_address (CORE_ADDR addr); +static CORE_ADDR hppa_target_read_pc (ptid_t ptid); +static void hppa_target_write_pc (CORE_ADDR v, ptid_t ptid); /* Handle 32/64-bit struct return conventions. */ @@ -2441,7 +2441,7 @@ } int -hppa_reg_struct_has_addr (int gcc_p, struct type *type) +hppa_use_struct_convention (int gcc_p, struct type *type) { /* On the PA, any pass-by-value structure > 8 bytes is actually passed via a pointer regardless of its type or the compiler used. */ @@ -2669,6 +2669,8 @@ set_gdbarch_read_pc (gdbarch, hppa_target_read_pc); set_gdbarch_write_pc (gdbarch, hppa_target_write_pc); + set_gdbarch_use_struct_convention (gdbarch, hppa_use_struct_convention); + /* Helper for function argument information. */ set_gdbarch_fetch_pointer_argument (gdbarch, hppa_fetch_pointer_argument);