public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix gdbhooks.py
@ 2017-09-01 20:36 Jakub Jelinek
  2017-09-02 12:37 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2017-09-01 20:36 UTC (permalink / raw)
  To: David Malcolm, Richard Sandiford; +Cc: gcc-patches

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix gdbhooks.py
  2017-09-01 20:36 [PATCH] Fix gdbhooks.py Jakub Jelinek
@ 2017-09-02 12:37 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2017-09-02 12:37 UTC (permalink / raw)
  To: Jakub Jelinek, David Malcolm, Richard Sandiford; +Cc: gcc-patches

On September 1, 2017 10:36:05 PM GMT+02:00, Jakub Jelinek <jakub@redhat.com> wrote:
>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?

OK. 

Richard. 

>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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-02 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01 20:36 [PATCH] Fix gdbhooks.py Jakub Jelinek
2017-09-02 12:37 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).