From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35305 invoked by alias); 2 Sep 2017 12:37:42 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 35293 invoked by uid 89); 2 Sep 2017 12:37:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm0-f42.google.com Received: from mail-wm0-f42.google.com (HELO mail-wm0-f42.google.com) (74.125.82.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 02 Sep 2017 12:37:36 +0000 Received: by mail-wm0-f42.google.com with SMTP id 137so5722331wmj.1 for ; Sat, 02 Sep 2017 05:37:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=xVaVsqP4kHskxG1rS/AyNXKF3Er83L6kzLwTWLOvFfs=; b=RN+A+pPqWtAe8tw/ob9Ofbv8zXRjHhtqJXNfo7Q6nleEhlJiAQWAbFFDZE8n+bwhIN +NXELCGe0vuyXyIgsxz6JY4lq2hkS247Vajf0giBu+AE/l5cpAr4X9mLFLnDWFIsOey1 u+fqUCoJsZjcljsrDtdIvr9qPWlzfNB9B1a/OfcPssf9bs+tofnTrx1qXflKxT3LILSO tR7kf+hTZWfku28TTryggZkEGL4wLnWdEhkeJWnHRwqPdcH6FAW/Fm8OgokcnUJCX6ZV BqUd+4BbiZac/bPX1urm1C9VrD2Zk1norMO5yfnXaRgCVxWosdw2GzN2Zd6X0hzMZQ1k pJ7g== X-Gm-Message-State: AHPjjUh+9ivzpbUOAcwb0i0RstB13xaVxnLuc5Q+v2QgGAM2lOqP9vnn m/+CC6hEBe90bQ== X-Google-Smtp-Source: ADKCNb7I1vMWn+I2e2E4Gy3eibwbH94praKQz4CGD/nn21H7fbyPjiowOSfbfcJouDe3ik5dzrIytQ== X-Received: by 10.80.181.124 with SMTP id z57mr4143551edd.24.1504355854124; Sat, 02 Sep 2017 05:37:34 -0700 (PDT) Received: from android-f83b394395796e13.fritz.box (p5494E583.dip0.t-ipconnect.de. [84.148.229.131]) by smtp.gmail.com with ESMTPSA id a7sm1130031edl.96.2017.09.02.05.37.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Sep 2017 05:37:32 -0700 (PDT) Date: Sat, 02 Sep 2017 12:37:00 -0000 User-Agent: K-9 Mail for Android In-Reply-To: <20170901203605.GT2323@tucnak> References: <20170901203605.GT2323@tucnak> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] Fix gdbhooks.py To: Jakub Jelinek ,David Malcolm ,Richard Sandiford CC: gcc-patches@gcc.gnu.org From: Richard Biener Message-ID: <97BFB5B0-B9A5-4B29-9F76-2DB6152E0643@gmail.com> X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00103.txt.bz2 On September 1, 2017 10:36:05 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >I'm seeing on the trunk errors like: >Traceback (most recent call last): > File "", line 1, in > File "../../gcc/gdbhooks.py", line 441 > if name =3D=3D 'E_VOIDmode': > ^ >TabError: inconsistent use of tabs and spaces in indentation >.gdbinit:14: Error in sourced command file: >Error while executing Python code. > >(with gdb 7.12.1). > >The following patch fixes that, bootstrapped/regtested on x86_64-linux >and >i686-linux, ok for trunk? OK.=20 Richard.=20 >2017-09-01 Jakub Jelinek > > * gdbhooks.py (OptMachineModePrinter.to_string): Use 8 spaces > instead of tab. > >--- gcc/gdbhooks.py.jj 2017-09-01 09:26:27.000000000 +0200 >+++ gcc/gdbhooks.py 2017-09-01 20:04:04.135133016 +0200 >@@ -438,8 +438,8 @@ class OptMachineModePrinter: >=20 > def to_string (self): > name =3D str(self.gdbval['m_mode']) >- if name =3D=3D 'E_VOIDmode': >- return '' >+ if name =3D=3D 'E_VOIDmode': >+ return '' > return name[2:] if name.startswith('E_') else name >=20 > ###################################################################### > > > Jakub