This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix gdbhooks.py
- From: Jakub Jelinek <jakub at redhat dot com>
- To: David Malcolm <dmalcolm at redhat dot com>, Richard Sandiford <richard dot sandiford at linaro dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 1 Sep 2017 22:36:05 +0200
- Subject: [PATCH] Fix gdbhooks.py
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jakub at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B7FE47E439
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
I'm seeing on the trunk errors like:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "../../gcc/gdbhooks.py", line 441
if name == '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?
2017-09-01 Jakub Jelinek <jakub@redhat.com>
* 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:
def to_string (self):
name = str(self.gdbval['m_mode'])
- if name == 'E_VOIDmode':
- return '<None>'
+ if name == 'E_VOIDmode':
+ return '<None>'
return name[2:] if name.startswith('E_') else name
######################################################################
Jakub