From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ot1-x32d.google.com with SMTP id g51-20020a9d12b6000000b0066dbea0d203so1905037otg.6 for ; Thu, 01 Dec 2022 14:39:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nP/rIJM7BHsOnd6zNmeaOOISt8GREYI5OrkpRM5EgAc=; b=dve0Ykw6TSQrJtaI8AJbZl7F1JIlyB5RqidzmHVb6KNNFCXWTEO1YOHN/YCYCH5IDb SZqB5d7CLz8H0Y72Lnpk6nOaeVlECbQoxO1/GQidCIMA3+OZ6l9D2AxEfRUXzDRNSCTr OKntdtRFq3McL3xCVXZ3lngDfy7Mowpbt7HJgOQat2+2d2v7SiztfL9woMv/aBQIseGi pVIzrRBKhP+8ivlemNf5ftWZeDAqtAyn4dLsQAl9+lQQZA81yE06WSzujE7yDzhA4STo IDrnHCg24IgUKjl3OcxDCd+Rxhg83ruaxuB1QDL40CJIvNXtKeXFgTpSBZIoy+pOP4ej +krQ== 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) From: Thiago Jung Bauermann 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 List-Id: 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