From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QNbqCGMMa2bR2jMAWB0awg (envelope-from ) for ; Thu, 13 Jun 2024 11:12:35 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=HZwVHnmE; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=NyU21VRC; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=HZwVHnmE; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=NyU21VRC; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1DB651E0C1; Thu, 13 Jun 2024 11:12:35 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 06C511E030 for ; Thu, 13 Jun 2024 11:12:33 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A27683882060 for ; Thu, 13 Jun 2024 15:12:32 +0000 (GMT) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id 3F8133882059 for ; Thu, 13 Jun 2024 15:11:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F8133882059 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3F8133882059 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718291521; cv=none; b=HIzO30k2NN1tbVafsk6IDPbJATjTwTaUdTHXvexd63npKo07sltIJuKSK1w8BiHPwFB/hdRS2n0fDhdwSviLMiDA8OmXWQQkIkjqNuiEmPYE7HaEdC8odnAUkrVMXhiLGoElOh2iFGTjVkF4WOxTPVqLGFK8rs5jlepWzBqj3HE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718291521; c=relaxed/simple; bh=Yxy3UvRE1N9XuU0xxa8TbgTfFVi2eivLvCU9jy6uvD0=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-Id:MIME-Version; b=nI/yY9TKYQvvJauDs1LYISPg9eB6jpMz9S/u7z3YM4NIIl6FCH4madgX65Ksr/LUr+4Ti71PcUo0jAtCOgjUyA5cFDWwFeTkUw9/NIOWgSA8udCXOEIgBuD5kFpTyt2G7E7yg5wxJKTu9xPWEALii13Bs8g+HZ5zVUqm3jR4b4Q= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 17F3D372F9 for ; Thu, 13 Jun 2024 15:11:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718291518; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=srnH66i3nr+tppyNHcxmo7O62istNmQ4C3G7JI+ikX8=; b=HZwVHnmECIe0rm/yoAt3HvbPMxKMVIUmeKbt9lixpnYTUfKvpa9jaB7csNB0OwzHnKjIxj 3ak/e3WKy8Dl0sSO7OPMuknLBmvnEEHxn3yCSu7/w0xbPvRU2Egx40nUSywKD1uOATyMcH V22+HehajJhbRqu4HosCNZMbD3Od0pU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718291518; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=srnH66i3nr+tppyNHcxmo7O62istNmQ4C3G7JI+ikX8=; b=NyU21VRCVuhEO6RPjjNVP6vHrKMQ/gZxr7Fi8vkTkHlsF9GPaFf4nR2ih0+JH/B0g5/ISX 4oasbsaaftdC+6Bw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718291518; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=srnH66i3nr+tppyNHcxmo7O62istNmQ4C3G7JI+ikX8=; b=HZwVHnmECIe0rm/yoAt3HvbPMxKMVIUmeKbt9lixpnYTUfKvpa9jaB7csNB0OwzHnKjIxj 3ak/e3WKy8Dl0sSO7OPMuknLBmvnEEHxn3yCSu7/w0xbPvRU2Egx40nUSywKD1uOATyMcH V22+HehajJhbRqu4HosCNZMbD3Od0pU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718291518; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=srnH66i3nr+tppyNHcxmo7O62istNmQ4C3G7JI+ikX8=; b=NyU21VRCVuhEO6RPjjNVP6vHrKMQ/gZxr7Fi8vkTkHlsF9GPaFf4nR2ih0+JH/B0g5/ISX 4oasbsaaftdC+6Bw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 021BD13A87 for ; Thu, 13 Jun 2024 15:11:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id WLS9Oj0Ma2ZUXQAAD6G6ig (envelope-from ) for ; Thu, 13 Jun 2024 15:11:57 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH v2 3/5] [gdb/testsuite] Clean up formatting in gdb/contrib/cc-with-tweaks.sh Date: Thu, 13 Jun 2024 17:12:39 +0200 Message-Id: <20240613151241.8144-3-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240613151241.8144-1-tdevries@suse.de> References: <20240613151241.8144-1-tdevries@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -2.80 X-Spam-Level: X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org In emacs, on gdb/contrib/cc-with-tweaks.sh, do: - M-x whitespace-cleanup, - M-x mark-whole-buffer and M-x indent-region, and - and undo the unwanted changes in the header comment. Only whitespace changes. Tested on x86_64-linux. --- gdb/contrib/cc-with-tweaks.sh | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh index 9d9c19c4430..4214b929295 100755 --- a/gdb/contrib/cc-with-tweaks.sh +++ b/gdb/contrib/cc-with-tweaks.sh @@ -136,10 +136,10 @@ do # doing a link and what the output file is. # It's not perfect, but it seems to work well enough for the task at hand. case "$arg" in - "-c") have_link=no ;; - "-E") have_link=no ;; - "-S") have_link=no ;; - "-o") next_is_output_file=yes ;; + "-c") have_link=no ;; + "-E") have_link=no ;; + "-S") have_link=no ;; + "-o") next_is_output_file=yes ;; esac done @@ -214,9 +214,9 @@ fi if [ "$want_index_cache" = true ]; then $GDB -q -batch \ - -ex "set index-cache directory $INDEX_CACHE_DIR" \ - -ex "set index-cache enabled on" \ - -ex "file $output_file" + -ex "set index-cache directory $INDEX_CACHE_DIR" \ + -ex "set index-cache enabled on" \ + -ex "file $output_file" rc=$? [ $rc != 0 ] && exit $rc fi @@ -248,18 +248,18 @@ if [ "$want_dwz" = true ]; then rm -f "${output_file}.copy" case $cmp_rc in - 0) - echo "$myname: dwz did not modify ${output_file}." - exit 1 - ;; - 1) - # File was modified, great. - ;; - *) - # Other cmp error, it presumably has already printed something on - # stderr. - exit 1 - ;; + 0) + echo "$myname: dwz did not modify ${output_file}." + exit 1 + ;; + 1) + # File was modified, great. + ;; + *) + # Other cmp error, it presumably has already printed something on + # stderr. + exit 1 + ;; esac elif [ "$want_multi" = true ]; then get_tmpdir @@ -326,7 +326,7 @@ if [ "$want_gnu_debuglink" = true ]; then # Overwrite output_file with stripped version containing # .gnu_debuglink to debug_file. $OBJCOPY --add-gnu-debuglink="$link" "${stripped_file}" \ - "${output_file}" + "${output_file}" ) rc=$? [ $rc != 0 ] && exit $rc -- 2.35.3