From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8459 invoked by alias); 15 Dec 2002 06:53:48 -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 8451 invoked from network); 15 Dec 2002 06:53:45 -0000 Received: from unknown (HELO urtur) (210.23.134.106) by sources.redhat.com with SMTP; 15 Dec 2002 06:53:45 -0000 Received: from rdb by urtur with local (Exim 3.35 #1 (Debian)) id 18NSuv-0001Fl-00 for ; Sun, 15 Dec 2002 18:10:25 +1100 Date: Sun, 15 Dec 2002 08:05:00 -0000 From: rdbrown@mira.net To: gdb-patches@sources.redhat.com Subject: Patch: gdb/hppa-tdep.c fix compilation. Message-ID: <20021215071024.GB4792@urtur> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-SW-Source: 2002-12/txt/msg00454.txt.bz2 Fix compilation of hppa-tdep.c and remove implicit declarations. 1213/gdb/hppa-tdep.c: In function `hppa_pop_frame': 1213/gdb/hppa-tdep.c:1607:\ incompatible type for argument 2 of `set_momentary_breakpoint' 1213/gdb/hppa-tdep.c: In function `hppa_fix_call_dummy': 1213/gdb/hppa-tdep.c:2296: warning:\ implicit declaration of function `som_solib_get_solib_by_pc' 1213/gdb/hppa-tdep.c: In function `hppa_prepare_to_proceed': 1213/gdb/hppa-tdep.c:4640: warning:\ implicit declaration of function `hppa_switched_threads' 2002-12-15 Rodney Brown * hppa-tdep.c: Prototype som_solib_get_solib_by_pc, hppa_switched_threads. (hppa_pop_frame): null_frame_id in set_momemtary_breakpoint. --- /home/rdb/gdb+dejagnu-20021208/gdb/hppa-tdep.c 2002-12-15 17:31:09.000000000 +1100 +++ ./hppa-tdep.c 2002-12-15 14:29:21.000000000 +1100 @@ -146,7 +146,9 @@ int hppa_cannot_store_register (int regn CORE_ADDR hppa_frame_args_address (struct frame_info *fi); CORE_ADDR hppa_frame_locals_address (struct frame_info *fi); CORE_ADDR hppa_smash_text_address (CORE_ADDR addr); +pid_t hppa_switched_threads (pid_t pid); int hppa_coerce_float_to_double (struct type *formal, struct type *actual); +CORE_ADDR som_solib_get_solib_by_pc (CORE_ADDR addr); typedef struct { @@ -1604,7 +1606,7 @@ hppa_pop_frame (void) for "return_command" will print the frame we returned to. */ sal = find_pc_line (target_pc, 0); sal.pc = target_pc; - breakpoint = set_momentary_breakpoint (sal, NULL, bp_finish); + breakpoint = set_momentary_breakpoint (sal, null_frame_id, bp_finish); breakpoint->silent = 1; /* So we can clean things up. */