From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19729 invoked by alias); 22 Apr 2004 17:04:29 -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 19671 invoked from network); 22 Apr 2004 17:04:27 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.77.109) by sources.redhat.com with SMTP; 22 Apr 2004 17:04:27 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i3MH4PBK000244; Thu, 22 Apr 2004 19:04:25 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i3MH4PRI000656; Thu, 22 Apr 2004 19:04:25 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i3MH4JUO000653; Thu, 22 Apr 2004 19:04:19 +0200 (CEST) Date: Thu, 22 Apr 2004 17:04:00 -0000 Message-Id: <200404221704.i3MH4JUO000653@elgar.kettenis.dyndns.org> From: Mark Kettenis To: randolph@tausq.org CC: gdb-patches@sources.redhat.com In-reply-to: <20040419071608.GV17842@tausq.org> (message from Randolph Chung on Mon, 19 Apr 2004 00:16:08 -0700) Subject: Re: [patch] Shuffle around some hppa code References: <20040419071608.GV17842@tausq.org> X-SW-Source: 2004-04/txt/msg00530.txt.bz2 Date: Mon, 19 Apr 2004 00:16:08 -0700 From: Randolph Chung A big patch that doesn't do very much; moves hpux-specific stuff into hppa-hpux-tdep.c; makes some utility functions non-static so that hppa-linux can use them. randolph OK. Mark 2004-04-18 Randolph Chung * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load) (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17) (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend) (hppa_sign_extend): Add prototype. * hppa-tdep.c (get_field, extract_5_load, extract_5R_store) (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend) (sign_extend): Rename with hppa_ prefix and make non-static. Other hppa targets will also use these functions. (find_unwind_entry): Remove prototype (moved to hppa-tdep.h). (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline) (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c (hppa_gdbarch_init): Remove gdbarch setting of skip_trampoline_code, in_solib_call_trampoline and in_solib_return_trampoline. * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) (hppa64_hpux_in_solib_call_trampoline): New functions, split from hppa_in_solib_call_trampoline. (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code): Moved from hppa-tdep.c. (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, in_solib_call_trampoline and in_solib_return_trampoline.