From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84970 invoked by alias); 18 Mar 2016 19:19:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 84832 invoked by uid 89); 18 Mar 2016 19:19:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=1076, 10923, refresh X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 18 Mar 2016 19:19:14 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 17D84627D0 for ; Fri, 18 Mar 2016 19:18:58 +0000 (UTC) Received: from cascais.lan (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2IJIYkP028091 for ; Fri, 18 Mar 2016 15:18:57 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 27/30] TUI: GC tui_target_has_run Date: Fri, 18 Mar 2016 19:19:00 -0000 Message-Id: <1458328714-4938-28-git-send-email-palves@redhat.com> In-Reply-To: <1458328714-4938-1-git-send-email-palves@redhat.com> References: <1458328714-4938-1-git-send-email-palves@redhat.com> X-SW-Source: 2016-03/txt/msg00350.txt.bz2 Nothing actually uses this global. gdb/ChangeLog: yyyy-mm-dd Pedro Alves * tui/tui-hooks.c (tui_target_has_run): Delete. (tui_about_to_proceed): Delete. (tui_about_to_proceed_observer): Delete. (tui_install_hooks, tui_remove_hooks): Don't install/remove an about_to_proceed observer. --- gdb/tui/tui-hooks.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index bfe7aeb..5a03b61 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -54,8 +54,6 @@ "gdb_curses.h". */ #include "readline/readline.h" -int tui_target_has_run = 0; - static void tui_new_objfile_hook (struct objfile* objfile) { @@ -109,23 +107,6 @@ tui_event_modify_breakpoint (struct breakpoint *b) tui_update_all_breakpoint_info (); } -/* Called when a command is about to proceed the inferior. */ - -static void -tui_about_to_proceed (void) -{ - /* Leave tui mode (optional). */ -#if 0 - if (tui_active) - { - target_terminal_ours (); - endwin (); - target_terminal_inferior (); - } -#endif - tui_target_has_run = 1; -} - /* Refresh TUI's frame and register information. This is a hook intended to be used to update the screen after potential frame and register changes. @@ -230,7 +211,6 @@ static struct observer *tui_bp_created_observer; static struct observer *tui_bp_deleted_observer; static struct observer *tui_bp_modified_observer; static struct observer *tui_inferior_exit_observer; -static struct observer *tui_about_to_proceed_observer; static struct observer *tui_before_prompt_observer; static struct observer *tui_normal_stop_observer; static struct observer *tui_register_changed_observer; @@ -255,8 +235,6 @@ tui_install_hooks (void) = observer_attach_breakpoint_modified (tui_event_modify_breakpoint); tui_inferior_exit_observer = observer_attach_inferior_exit (tui_inferior_exit); - tui_about_to_proceed_observer - = observer_attach_about_to_proceed (tui_about_to_proceed); tui_before_prompt_observer = observer_attach_before_prompt (tui_before_prompt); tui_normal_stop_observer @@ -280,8 +258,6 @@ tui_remove_hooks (void) tui_bp_modified_observer = NULL; observer_detach_inferior_exit (tui_inferior_exit_observer); tui_inferior_exit_observer = NULL; - observer_detach_about_to_proceed (tui_about_to_proceed_observer); - tui_about_to_proceed_observer = NULL; observer_detach_before_prompt (tui_before_prompt_observer); tui_before_prompt_observer = NULL; observer_detach_normal_stop (tui_normal_stop_observer); -- 2.5.0