From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn2012.outbound.protection.outlook.com [40.92.52.12]) by sourceware.org (Postfix) with ESMTPS id 3E4C33858284 for ; Wed, 1 Feb 2023 14:37:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3E4C33858284 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=hotmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lep4BqSnqbgMKf+Pi9cmAtLRUNxxV1wZWYE3Zk/hbft5BYnC0zfAbRsUSj/hpvtTWVOgNiuA+7D+J6jYfClrG9dALKZfDv8T4AQK7Wyik9eln0+pSWftTTgJtOClIrwRoT3xI/Vf56J2aAZLhk+HVZgFTbK56edw1nGadptHhH+dzQlAizBS1crEHdZudHTAQEMrzWBHCH6kruKFrP6/FxYjIt88HLeEJifTGF04cu/zvIxrSPslSNCsBbvQ/N3oBtV2ybj4kCC7Val39E4Kfqjhgu+VUcEt2yYyQirDzCVBN6CDSobh3k3rhYXGv4QtTPNwb7M1RfpOY84fYQznhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=v/Kql56nrRGZ+Is2IUChfadsYYUg1eNMF28ErqfgxM8=; b=WxzfvsD1oBbehpjgr7kZUGsrAXBM5iLDw9nRk672GWhY+700eb1o7AERnUWiP2Ym6fcd0j7rW1g1zvSyfUydyWj7uEMv+qhuroXU+a6IWCWd0LG58jXQLCkKeXIw9WcXDLFPX7X4SHV5A++ZBnfdtyfSVN0IZMpZJBLkVppacuEUZlwobLcOEcSfL32SVqoBIZh5ujQLTMW6Co2vZ4MEVtAaW/h0VWTPFg56oXw3mJ65V5j5S4eytD+Hk0tZuHGdyhhTkGwh9tKqxwpyJq+RIq7+4GbLLpXVWjSM5RAss1tlAFRkCUVXMAgsSPPrUH4RQns0i0ck+RcVWT+cn52IfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v/Kql56nrRGZ+Is2IUChfadsYYUg1eNMF28ErqfgxM8=; b=Kr3k+1wQZwrSnd6lxIS6QrLd026XRnkXOURTW20UmRR7et+9zW8cn0b88p5L1JNUdAXkWQr4l1ifkzmNhubc7I9nDNGzmEijSuSDcZh3jUyptDa0/t4uY/fAMEhrODdkTOKsE+9znpD50+3QlDRlFhb4GfXgT//8v6iZskRRBrXOe1eqfFYGkyFUVkqp3J0fCvY/nTnpcjPGI5WBFFzGSXp4E64kzFHJnURe/gjSzkDPwVh8KvlX8O8bzirBXTkszz+H1sXc8+C5k0WGUwNYKdmcTc2WCdbY3t4LdbbzquTJXmTLtkAj5O0eNLq6zlR95YmVDKdKMHM/tN9ycLgKiQ== Received: from OS3P286MB2152.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:197::9) by TY3P286MB2644.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:254::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Wed, 1 Feb 2023 14:37:55 +0000 Received: from OS3P286MB2152.JPNP286.PROD.OUTLOOK.COM ([fe80::9dab:3427:4ade:df5e]) by OS3P286MB2152.JPNP286.PROD.OUTLOOK.COM ([fe80::9dab:3427:4ade:df5e%4]) with mapi id 15.20.6064.022; Wed, 1 Feb 2023 14:37:55 +0000 From: Enze Li To: gdb-patches@sourceware.org Cc: enze.li@gmx.com Subject: [PATCH] gdb: remove gdb_indent.sh Date: Wed, 1 Feb 2023 22:37:41 +0800 Message-ID: X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [y8eiSGjCHGHdw/3tMZHDSlgl0hljtnBz] X-ClientProxiedBy: SG2PR06CA0204.apcprd06.prod.outlook.com (2603:1096:4:1::36) To OS3P286MB2152.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:197::9) X-Microsoft-Original-Message-ID: <20230201143741.32344-1-enze.li@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3P286MB2152:EE_|TY3P286MB2644:EE_ X-MS-Office365-Filtering-Correlation-Id: eb397cff-c147-4386-8a02-08db0461e817 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: coavICjryRu8o89vFLLA5pDj6P4aHNnnzW6dOPtXd+0o20SM5SjeOu1VruMYCzSQKPbycLxJB52sQjCgw3rc2eTtIdGylQsaIKQ2nr5bH6L86hUwqoXdruXU8p0IMFZAb2WyYdJvorSPrI96jb1iXijHvhEEr/CDkgoYlXLw5AYU3WyxZBzruRdJFi8Xaq6d+rzzOGc3KwErCVwtgu2/yimEN8Y2uw/HO5GBIFqyf3dX55lr2Y6uIDVzB9yYiAiB7YYfaOx1GRdf+EPbYB9VT8+yJ6V/vpRTgNs4GeHT69cGdklGi0jo3ii0oE4Ke5XhoyzKh2wdFASgoiGVOL0FL2aa7doibDWr3cT5wuDysr7AY5CtO1/jRdrPSCt+faIs0H84zYsjqLTi0ncptiZO8XoWzmf9VboTw5LHDpJ+SIJXw/RHvKcDsgcLSVydzBxVsy6X8uMtiZLslhZnw8eHCruU3XzCn11s8CMGBwFEyuxtqkjqYLrWIvmWlPBqIMWKDrd0+550UcLRGo1+BmDGnc2ckZJMQpxtvolvaL4sOHlU7XgC/4pL0iOkHNSsUy/Ksi0KuB8LfmrjRQdaLgIGVQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6yH+hvPt5p6I5DR7qdNM8xg8K9VLkB8a0sqUCurK07Ky3Cfoa432t98c21ys?= =?us-ascii?Q?4M2A9m6/f270bFq6V5G6l5XyNp4UnpyEGJdt0LxaDJ1U8I71x3nEVcZMk21E?= =?us-ascii?Q?/A33rxYEnibRD11lONTa8Wvm/c7VplP21CX8BjG2li5y5x8zbufUq5JtYime?= =?us-ascii?Q?g99sVLvcYJ3dcrwa5lftXT+F5/WtX1fJyxNgCC9DPLPo+LFma4chBo5y493L?= =?us-ascii?Q?9TsspoV8sjwrl30yH/XYL/oL76bQW0Qifg+9TkfdwTfGkl/3ooMrG/C8aa6R?= =?us-ascii?Q?54x35JJXcqeeLYeyB5hqItD6Rdgj4oLo9Y/mmjfuVZSZ6DT2iOdf/VVrhp06?= =?us-ascii?Q?WZZlE9Gpt4GowV2b6r0VknpIig1rOU9yGXryjPwj+RHDDdPTeDwYWhZqpzXl?= =?us-ascii?Q?S1FuhuFpqMKcR7xZSd5WwAORsc7d/iRbSvG1yHK+6hT950nJxzQxBMXZLFeu?= =?us-ascii?Q?GQ+lE22/74KTRSmj72YEj0vV4yZcjCRk8QlLlgCHisPAMSAseCDlbp3mOKPy?= =?us-ascii?Q?HUoQ1ETLzoliokzcUvussZxTX/gz3RTvt4fRKaK9FHSPQQ9pr86GI1KmySB1?= =?us-ascii?Q?uM90Z26vTs7vcMl5Mjj97o0zfA74CnA6D7pRcfnzNH4McATgQvXvBWLe7C+C?= =?us-ascii?Q?CInLDurgHKPuX+BstaM95ArnbI4IOmeNIvC4XRFVdCbL0O6EC2G7kvXocbF1?= =?us-ascii?Q?eqPsX1+J23v7NtuKUpHXCYfxaeuc1kVgQMHTEUCTyJIe+W6UEsPj/F8feZtB?= =?us-ascii?Q?zNwrlklsa9V4ZjlszGmKWJN2HapmDloi1ReJU7k9FtiiI+iIOwjdqos+98Mv?= =?us-ascii?Q?3D2eR8AnauAnRBnxMXyeJxuKhSVLp8b3/g1oGT9Yy697eFMv/drEouXN5keZ?= =?us-ascii?Q?Qq0DTd08WRSH23lGd2su1MLtudCvRlGOMaUPHrqFUB9TIEmc/UJO+oSsIwDO?= =?us-ascii?Q?21ltbBq4pxYCAP44l6R1l345iRpuSpqtVRc23R33yzriKqp8Dfgiejj0ZOpV?= =?us-ascii?Q?E0o2RAkaYX6kY+WsEc3joSjxps7u5pjWo1FoFPwSQT4anBQq3/DaEgjeEIur?= =?us-ascii?Q?wZqpBSlrG79BE1Mrqx2sTUYoldLi60dVZ2+fp1KeDP5HHvbQ0y30o2K/Z9AT?= =?us-ascii?Q?enXH26zsOJQg3mMv0UWV/a/ILm9CB/TmMzQgZkJFhAdc2pEr3PXjHrAhJEPs?= =?us-ascii?Q?zxCDCc3wyjhA1P+J0MEvurYFfeOHrEAM4WAj0AnS60TVe+Sh98UcXOG0Ih5Z?= =?us-ascii?Q?YyOR2TQPzY2shnN//vQt1C0uQnaE1MH+QY5OIkytmA=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-05f45.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: eb397cff-c147-4386-8a02-08db0461e817 X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB2152.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2023 14:37:55.8377 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3P286MB2644 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: GDB has been converted to a C++ program for many years[1], and the gdb_indent.sh will not be used any more. Therefore, remove the script as obvious. [1] https://sourceware.org/gdb/wiki/cxx-conversion --- gdb/gdb_indent.sh | 92 ----------------------------------------------- 1 file changed, 92 deletions(-) delete mode 100755 gdb/gdb_indent.sh diff --git a/gdb/gdb_indent.sh b/gdb/gdb_indent.sh deleted file mode 100755 index 115b99521fc..00000000000 --- a/gdb/gdb_indent.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/sh - -# Try to find a GNU indent. There could be a BSD indent in front of a -# GNU gindent so when indent is found, keep looking. - -# Make certain that the script is not running in an internationalized -# environment. -LANG=c ; export LANG -LC_ALL=c ; export LC_ALL - -gindent= -indent= -paths=`echo $PATH | sed \ - -e 's/::/:.:/g' \ - -e 's/^:/.:/' \ - -e 's/:$/:./' \ - -e 's/:/ /g'` -for path in $paths -do - if test ! -n "${gindent}" -a -x ${path}/gindent - then - gindent=${path}/gindent - break - elif test ! -n "${indent}" -a -x ${path}/indent - then - indent=${path}/indent - fi -done - -if test -n "${gindent}" -then - indent=${gindent} -elif test -n "${indent}" -then - : -else - echo "Indent not found" 1>&2 -fi - - -# Check that the indent found is both GNU and a reasonable version. -# Different indent versions give different indentation. - -m1=2 -m2=2 -m3=9 - -version=`${indent} --version 2>/dev/null < /dev/null` -case "${version}" in - *GNU* ) ;; - * ) echo "error: GNU indent $m1.$m2.$m3 expected" 1>&2 ; exit 1;; -esac -v1=`echo "${version}" | sed 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\1/'` -v2=`echo "${version}" | sed 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\2/'` -v3=`echo "${version}" | sed 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\3/'` - -if test $m1 -ne $v1 -o $m2 -ne $v2 -o $m3 -gt $v3 -then - echo "error: Must be GNU indent version $m1.$m2.$m3 or later" 1>&2 - exit 1 -fi - -if test $m3 -ne $v3 -then - echo "warning: GNU indent version $m1.$m2.$m3 recommended" 1>&2 -fi - -# Check that we're in the GDB source directory - -case `pwd` in - */gdb ) ;; - */sim/* ) ;; - * ) echo "Not in GDB directory" 1>&2 ; exit 1 ;; -esac - - -# Run indent per GDB specs - -types="\ --T FILE \ --T bfd -T asection -T pid_t \ --T prgregset_t -T fpregset_t -T gregset_t -T sigset_t \ --T td_thrhandle_t -T td_event_msg_t -T td_thr_events_t \ --T td_notify_t -T td_thr_iter_f -T td_thrinfo_t \ --T caddr_t \ -`cat *.h | sed -n \ - -e 's/^.*[^a-z0-9_]\([a-z0-9_]*_ftype\).*$/-T \1/p' \ - -e 's/^.*[^a-z0-9_]\([a-z0-9_]*_func\).*$/-T \1/p' \ - -e 's/^typedef.*[^a-zA-Z0-9_]\([a-zA-Z0-9_]*[a-zA-Z0-9_]\);$/-T \1/p' \ - | sort -u`" - -${indent} ${types} "$@" base-commit: 4788abdec79a937e51ad334b608fa1bd03713112 -- 2.39.1