From patchwork Thu Dec 1 22:39:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 55335 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 3E79938582A1 for ; Thu, 1 Dec 2022 22:40:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E79938582A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669934400; bh=nP/rIJM7BHsOnd6zNmeaOOISt8GREYI5OrkpRM5EgAc=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=CASCPajEDhb2uYwh3jM1CH61setvGxvBuCGTPZ4KEZP6mHR6XakOxMtyrfibVrQ1x HtOPickhmUiUMVqjwHtxTQfobCl0Kf9jm2pVei3uYl60Lzc0Q5otMdYS1u895Ks7F5 0AOvEA2nIbPbPwVvmCbwSjxPcB+eh2EXyJYj7it0= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 3D6D13858288 for ; Thu, 1 Dec 2022 22:39:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3D6D13858288 Received: by mail-ot1-x32d.google.com with SMTP id g51-20020a9d12b6000000b0066dbea0d203so1905037otg.6 for ; Thu, 01 Dec 2022 14:39:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nP/rIJM7BHsOnd6zNmeaOOISt8GREYI5OrkpRM5EgAc=; b=1Suj7ulPqH271L6t1cOhrmFGkWlPykIdtlb5e6GeoZf8Jv0b0ctu3DC7wR9hS56ipZ WMdfTHtMx6RzhPcRcfgJoRTc8v4mlp4+0BURRpW6BLRYmzQSLA/x/HfI/brORawmX+SO Nn+zonFWv9NQI9ONIIhRgKUxsdT0hBbIZsKD+tJODN6Uww2mwmIGMRlANw1wWrv6OOGa wN2W0TvUhEGmlmBI7S0QGUQFU9ZUOhD4cP8ka1i+bLDt0kPzS1BA/LNr0bS61VvQRqYD nGCP5nn8qCKBcZWE1q0AfeZLfywk4q63nu+jUyNbQKWcPiAaFn2cGNFG8j2kkwCfvdQA wc8g== X-Gm-Message-State: ANoB5pn4rgms6IxIaLGDiCVrXKS/i+Pb2eHvE/nIFAD0nNwfF4Plbud2 mPSi60u340dn/xCZsDCRDRtYylm+fnfMXw== X-Google-Smtp-Source: AA0mqf6wMRQlJjZSv72Eiu+wXS4fSNpH1HFyNTAhwy7fiGWOwzNdfpRULPQq/LjZ4PQYJ9WKdeHjjg== X-Received: by 2002:a05:6830:6113:b0:66d:d352:fbab with SMTP id ca19-20020a056830611300b0066dd352fbabmr32122430otb.17.1669934370527; Thu, 01 Dec 2022 14:39:30 -0800 (PST) Received: from localhost ([2804:14d:7e39:8470:afbe:825c:5fa6:39f9]) by smtp.gmail.com with ESMTPSA id r16-20020a05687080d000b00142d7f2fd4fsm3249189oab.48.2022.12.01.14.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 14:39:30 -0800 (PST) To: gdb-patches@sourceware.org Cc: Thiago Jung Bauermann Subject: [PATCH 0/2] Fix tab vs spaces in generated gdbarch.c Date: Thu, 1 Dec 2022 22:39:12 +0000 Message-Id: <20221201223914.366184-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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 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: Thiago Jung Bauermann via Gdb-patches From: Thiago Jung Bauermann Reply-To: Thiago Jung Bauermann Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" Hello, If you change gdbarch-components.py and submit a patch containing the generated gdbarch.c file, git will point out that it contains whitespace errors, e.g.: Applying: gdb/aarch64: Detect vector length changes when debugging remotely .git/rebase-apply/patch:164: indent with spaces. "gdbarch_dump: update_architecture = <%s>\n", .git/rebase-apply/patch:165: indent with spaces. host_address_to_string (gdbarch->update_architecture)); .git/rebase-apply/patch:186: indent with spaces. gdbarch_update_architecture_ftype update_architecture) warning: 3 lines add whitespace errors. These patches make gdbarch.py generate indentation using tabs and spaces as required by the GNU coding style. The first patch also takes the opportunity to align the function arguments with the opening parenthesis in the line above. In both patches, “git show --ignore-all-space” confirms that gdbarch.c has only whitespace changes. Thiago Jung Bauermann (2): gdbarch.py: Fix indentation in the generated gdbarch_dump function gdbarch.py: Fix indentation in the generated set_gdbarch_* definitions gdb/gdbarch.c | 1502 ++++++++++++++++++++++++------------------------ gdb/gdbarch.py | 29 +- 2 files changed, 767 insertions(+), 764 deletions(-) base-commit: 55fc1623f942fba10362cb199f9356d75ca5835b