From patchwork Tue Feb 28 14:50:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rudo X-Patchwork-Id: 19402 Received: (qmail 17321 invoked by alias); 28 Feb 2017 14:50:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 17132 invoked by uid 89); 28 Feb 2017 14:50:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, KHOP_DYNAMIC, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=ecs, (unknown) X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Feb 2017 14:50:29 +0000 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v1SEn5R2123708 for ; Tue, 28 Feb 2017 09:50:28 -0500 Received: from e06smtp06.uk.ibm.com (e06smtp06.uk.ibm.com [195.75.94.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 28w9ruw7a9-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 28 Feb 2017 09:50:28 -0500 Received: from localhost by e06smtp06.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 Feb 2017 14:50:26 -0000 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp06.uk.ibm.com (192.168.101.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 28 Feb 2017 14:50:25 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 32B4D1B08070 for ; Tue, 28 Feb 2017 14:53:26 +0000 (GMT) Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v1SEoOVM12386782; Tue, 28 Feb 2017 14:50:24 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 32A8852065; Tue, 28 Feb 2017 13:48:59 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 1D11E5204E; Tue, 28 Feb 2017 13:48:59 +0000 (GMT) From: Philipp Rudo To: gdb-patches@sourceware.org Cc: arnez@linux.vnet.ibm.com Subject: [PATCH 06/11] Remove unused deprecated_context_hook Date: Tue, 28 Feb 2017 15:50:11 +0100 In-Reply-To: <20170228145016.22604-1-prudo@linux.vnet.ibm.com> References: <20170228145016.22604-1-prudo@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17022814-0024-0000-0000-000002C00FC8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17022814-0025-0000-0000-0000229239A8 Message-Id: <20170228145016.22604-7-prudo@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-02-28_13:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1702280136 X-IsSubscribed: yes Nobody actually uses this hook anymore. So simply remove it. gdb/ChangeLog * defs.h (deprecated_context_hook): Remove. * top.c (deprecated_context_hook): Remove. * interps.c (clear_interpreter_hooks): Adjust. * infrun.c (handle_signal_stop): Adjust. --- gdb/defs.h | 1 - gdb/infrun.c | 3 --- gdb/interps.c | 1 - gdb/top.c | 4 ---- 4 files changed, 9 deletions(-) diff --git a/gdb/defs.h b/gdb/defs.h index 4f3bdd3..6133eb9 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -672,7 +672,6 @@ extern void (*deprecated_print_frame_info_listing_hook) (struct symtab * s, int noerror); extern int (*deprecated_query_hook) (const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1,0); -extern void (*deprecated_context_hook) (int); extern ptid_t (*deprecated_target_wait_hook) (ptid_t ptid, struct target_waitstatus *status, int options); diff --git a/gdb/infrun.c b/gdb/infrun.c index 1e5e9f1..2085c94 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -5752,9 +5752,6 @@ handle_signal_stop (struct execution_control_state *ecs) fprintf_unfiltered (gdb_stdlog, "infrun: context switch\n"); context_switch (ecs->ptid); - - if (deprecated_context_hook) - deprecated_context_hook (ptid_to_global_thread_id (ecs->ptid)); } /* At this point, get hold of the now-current thread's frame. */ diff --git a/gdb/interps.c b/gdb/interps.c index bc56666..8f122c5 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -391,7 +391,6 @@ clear_interpreter_hooks (void) deprecated_print_frame_info_listing_hook = 0; /*print_frame_more_info_hook = 0; */ deprecated_query_hook = 0; - deprecated_context_hook = 0; deprecated_target_wait_hook = 0; deprecated_call_command_hook = 0; deprecated_error_begin_hook = 0; diff --git a/gdb/top.c b/gdb/top.c index fd5bd5a..cc5df78 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -213,10 +213,6 @@ ptid_t (*deprecated_target_wait_hook) (ptid_t ptid, void (*deprecated_call_command_hook) (struct cmd_list_element * c, char *cmd, int from_tty); -/* Called when the current thread changes. Argument is thread id. */ - -void (*deprecated_context_hook) (int id); - /* The highest UI number ever assigned. */ static int highest_ui_num;