From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28703 invoked by alias); 3 Oct 2002 02:34:33 -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 28696 invoked from network); 3 Oct 2002 02:34:32 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 3 Oct 2002 02:34:32 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g932Fa001207 for ; Wed, 2 Oct 2002 22:15:36 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g932YWf18295 for ; Wed, 2 Oct 2002 22:34:32 -0400 Received: from localhost.redhat.com (IDENT:root@tooth.toronto.redhat.com [172.16.14.29]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g932YU915691 for ; Wed, 2 Oct 2002 22:34:30 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id 9B01DFF79; Wed, 2 Oct 2002 22:32:05 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15771.44068.721096.36322@localhost.redhat.com> Date: Wed, 02 Oct 2002 19:34:00 -0000 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Ooopsie in mi/mi-main.c In-Reply-To: <20021003015829.GJ18721@gnat.com> References: <20021003015829.GJ18721@gnat.com> X-SW-Source: 2002-10/txt/msg00100.txt.bz2 Here is the piece of the patch that I forgot. I am checking this in right now. Elena 2002-10-02 Elena Zannoni * infcmd.c (interrupt_target_command_wrapper): Delete. (interrupt_target_command): Make non static. (nofp_registers_info): Make static. * stack.c (return_command_wrapper): Delete. (return_command): Make non static. Index: stack.c =================================================================== RCS file: /cvs/uberbaum/gdb/stack.c,v retrieving revision 1.44 diff -u -p -r1.44 stack.c --- stack.c 22 Sep 2002 22:18:41 -0000 1.44 +++ stack.c 3 Oct 2002 02:31:00 -0000 @@ -50,9 +50,9 @@ void (*selected_frame_level_changed_hook void _initialize_stack (void); -/* Prototypes for local functions. */ +void return_command (char *, int); -static void return_command (char *, int); +/* Prototypes for local functions. */ static void down_command (char *, int); @@ -1755,12 +1755,6 @@ down_command (char *count_exp, int from_ } void -return_command_wrapper (char *retval_exp, int from_tty) -{ - return_command (retval_exp, from_tty); -} - -static void return_command (char *retval_exp, int from_tty) { struct symbol *thisfun; Index: infcmd.c =================================================================== RCS file: /cvs/uberbaum/gdb/infcmd.c,v retrieving revision 1.56 diff -u -p -r1.56 infcmd.c --- infcmd.c 25 Sep 2002 20:30:37 -0000 1.56 +++ infcmd.c 3 Oct 2002 02:30:56 -0000 @@ -42,18 +42,24 @@ #include "parser-defs.h" #include "regcache.h" -/* Functions exported for general use: */ - -void nofp_registers_info (char *, int); +/* Functions exported for general use, in inferior.h: */ void all_registers_info (char *, int); void registers_info (char *, int); -/* Local functions: */ +void nexti_command (char *, int); + +void stepi_command (char *, int); void continue_command (char *, int); +void interrupt_target_command (char *args, int from_tty); + +/* Local functions: */ + +static void nofp_registers_info (char *, int); + static void print_return_value (int struct_return, struct type *value_type); static void finish_command_continuation (struct continuation_arg *); @@ -72,8 +78,6 @@ static void float_info (char *, int); static void detach_command (char *, int); -static void interrupt_target_command (char *args, int from_tty); - static void unset_environment_command (char *, int); static void set_environment_command (char *, int); @@ -92,10 +96,6 @@ static void step_1 (int, int, char *); static void step_once (int skip_subroutines, int single_inst, int count); static void step_1_continuation (struct continuation_arg *arg); -void nexti_command (char *, int); - -void stepi_command (char *, int); - static void next_command (char *, int); static void step_command (char *, int); @@ -1729,7 +1729,7 @@ all_registers_info (char *addr_exp, int registers_info (addr_exp, 1); } -void +static void nofp_registers_info (char *addr_exp, int from_tty) { registers_info (addr_exp, 0); @@ -1891,14 +1891,7 @@ detach_command (char *args, int from_tty /* Stop the execution of the target while running in async mode, in the backgound. */ - void -interrupt_target_command_wrapper (char *args, int from_tty) -{ - interrupt_target_command (args, from_tty); -} - -static void interrupt_target_command (char *args, int from_tty) { if (event_loop_p && target_can_async_p ())