From patchwork Thu May 18 07:31:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 69571 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 44D0C385559B for ; Thu, 18 May 2023 07:32:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 44D0C385559B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684395131; bh=vV//tNuspPxGsXMqi9hrvzaQmcdAExakH9CJVqhwCaE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wrukA4qdEwr+X2id0DZq8YrwoKlbhQha/lYJDeHkQOPEPbP3D1UqglOcnC45Y2lRw dXxwF7fdZ6h30/RoJgp679lYt8bvI7anJsbwaJQKo85iNU/CdYPFduq6+ODio3gZat SdBALI9o/1e7i5W3/9nlFe/YoWEytkVvaR2k1WbQ= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 965563858D38 for ; Thu, 18 May 2023 07:31:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 965563858D38 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id CCE5822701 for ; Thu, 18 May 2023 07:31:45 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B409A138F5 for ; Thu, 18 May 2023 07:31:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id XrJDKmHUZWRXIAAAMHmgww (envelope-from ) for ; Thu, 18 May 2023 07:31:45 +0000 To: gdb-patches@sourceware.org Subject: [pushed] [gdb/testsuite] Fix whitespace and indentation in lib/tuiterm.exp Date: Thu, 18 May 2023 09:31:41 +0200 Message-Id: <20230518073141.21524-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, 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.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom de Vries via Gdb-patches From: Tom de Vries Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" I noticed a trailing whitespace and some indentation errors in lib/tuiterm.exp. Fix these. Tested by re-running the TUI test-cases (gdb.tui/*.exp and gdb.python/tui*.exp) on x86_64-linux. --- gdb/testsuite/lib/tuiterm.exp | 96 +++++++++++++++++------------------ 1 file changed, 48 insertions(+), 48 deletions(-) base-commit: 6a99f006ecadaf604258b583dec642de2d6f88ec diff --git a/gdb/testsuite/lib/tuiterm.exp b/gdb/testsuite/lib/tuiterm.exp index 195f14666f4..64a883e89a3 100644 --- a/gdb/testsuite/lib/tuiterm.exp +++ b/gdb/testsuite/lib/tuiterm.exp @@ -552,52 +552,52 @@ namespace eval Term { # https://vt100.net/docs/vt510-rm/SGR.html proc _csi_m {args} { _log_cur "Select Graphic Rendition ([join $args {, }])" { - variable _attrs - - foreach item $args { - switch -exact -- $item { - "" - 0 { - set _attrs(intensity) normal - set _attrs(fg) default - set _attrs(bg) default - set _attrs(underline) 0 - set _attrs(reverse) 0 - } - 1 { - set _attrs(intensity) bold - } - 2 { - set _attrs(intensity) dim - } - 4 { - set _attrs(underline) 1 - } - 7 { - set _attrs(reverse) 1 - } - 22 { - set _attrs(intensity) normal - } - 24 { - set _attrs(underline) 0 - } - 27 { - set _attrs(reverse) 1 - } - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 { - set _attrs(fg) $item - } - 39 { - set _attrs(fg) default - } - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 { - set _attrs(bg) $item - } - 49 { - set _attrs(bg) default - } - } - } + variable _attrs + + foreach item $args { + switch -exact -- $item { + "" - 0 { + set _attrs(intensity) normal + set _attrs(fg) default + set _attrs(bg) default + set _attrs(underline) 0 + set _attrs(reverse) 0 + } + 1 { + set _attrs(intensity) bold + } + 2 { + set _attrs(intensity) dim + } + 4 { + set _attrs(underline) 1 + } + 7 { + set _attrs(reverse) 1 + } + 22 { + set _attrs(intensity) normal + } + 24 { + set _attrs(underline) 0 + } + 27 { + set _attrs(reverse) 1 + } + 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 { + set _attrs(fg) $item + } + 39 { + set _attrs(fg) default + } + 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 { + set _attrs(bg) $item + } + 49 { + set _attrs(bg) default + } + } + } } } @@ -614,7 +614,7 @@ namespace eval Term { variable _chars set lattr [array get _attrs] foreach char [split $str {}] { - _log_cur " Inserted char '$char'" { + _log_cur " Inserted char '$char'" { set _chars($_cur_col,$_cur_row) [list $char $lattr] incr _cur_col if {$_cur_col >= $_cols} { @@ -739,7 +739,7 @@ namespace eval Term { variable _cur_row set fn "wait_for" - + set prompt_wait_for "$gdb_prompt \$" debug_tui_matching "$fn: regexp: '$wait_for'"