From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16297 invoked by alias); 28 Feb 2017 14:50:24 -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 16282 invoked by uid 89); 28 Feb 2017 14:50:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=UD:infrun.c, infrun.c, top.c, infrunc X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Feb 2017 14:50:22 +0000 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v1SEn4kf088981 for ; Tue, 28 Feb 2017 09:50:21 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 28wam8tbm2-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 28 Feb 2017 09:50:20 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 Feb 2017 14:50:19 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 28 Feb 2017 14:50:17 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 36AAC2190066 for ; Tue, 28 Feb 2017 14:49:18 +0000 (GMT) Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v1SEoHeA3539258; Tue, 28 Feb 2017 14:50:17 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4E1D35205F; Tue, 28 Feb 2017 13:48:52 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 294D852050; Tue, 28 Feb 2017 13:48:52 +0000 (GMT) From: Philipp Rudo To: gdb-patches@sourceware.org Cc: arnez@linux.vnet.ibm.com Subject: [PATCH 00/11] Cleanup deprecated_*_hooks in defs.h Date: Tue, 28 Feb 2017 14:50:00 -0000 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17022814-0028-0000-0000-000002B51096 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17022814-0029-0000-0000-0000228B37B6 Message-Id: <20170228145016.22604-1-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 X-SW-Source: 2017-02/txt/msg00716.txt.bz2 Hi everybody this series cleans up several hooks in defs.h which were deprecated in 2004 (9a4105ab). Most of these hooks are no longer used and can be removed without problem. The last patch of this series contains a minor cange for TUI. According to the comment in tui/tui-hooks.c:tui_install_hooks the hook is only used to check if TUI is active. Thus directly checking tui_active should do the trick. A quick test does not show any change of behavior. Nevertheless it would be better if somebody with more experience on TUI takes a closer look. After this series only two deprecated hooks remain in defs.h (deprecated_show_load_progress and deprecated_query_hook). Both of them are still used in the MI interpreter. It would be nice if somebody with experience on MI could take a look at them. Philipp Philipp Rudo (11): Remove unused deprecated_{pre|post}_add_symbol_hook Remove unused deprecated_ui_loop_hook Remove unused deprecated_warning_hook Remove unused deprecated_interactive_hook Remove unused deprecated_readline{_begin|_end}_hook Remove unused deprecated_context_hook Remove unused deprecated_target_wait_hook Remove unused deprecated_{attach|detach}_hook Remove unused deprecated_call_command_hook Remove unused deprecated_ui_load_progress_hook Remove deprecated_print_frame_info_listing_hook gdb/cli/cli-script.c | 21 +++------------ gdb/complaints.c | 2 -- gdb/defs.h | 26 ------------------- gdb/infcmd.c | 7 ----- gdb/infrun.c | 26 +++++-------------- gdb/interps.c | 9 ------- gdb/remote-sim.c | 3 --- gdb/ser-base.c | 13 ---------- gdb/ser-tcp.c | 11 +------- gdb/ser-unix.c | 15 ----------- gdb/serial.h | 5 +--- gdb/stack.c | 42 +++++++++++++----------------- gdb/symfile.c | 25 ++++-------------- gdb/target.c | 3 --- gdb/top.c | 72 +--------------------------------------------------- gdb/tui/tui-hooks.c | 19 -------------- gdb/utils.c | 36 ++++++++++---------------- gdb/windows-nat.c | 10 -------- 18 files changed, 48 insertions(+), 297 deletions(-) -- 2.8.4