gdb-v8-support.py: Fix old style print statement
Since python3 does not use the old print statement, it may not be able to load gdb-v8-support.py script in gdb as below: (gdb) source tools/gdb-v8-support.py File "tools/gdb-v8-support.py", line 170 print result ^ SyntaxError: Missing parentheses in call to 'print' This fixes print statement for both python2 and python3. R=jochen@chromium.org BUG= Review-Url: https://codereview.chromium.org/2084163004 Cr-Commit-Position: refs/heads/master@{#37488}
This commit is contained in:
parent
9c0aef52fa
commit
c52685a516
2
AUTHORS
2
AUTHORS
@ -63,7 +63,7 @@ Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
|
|||||||
Geoffrey Garside <ggarside@gmail.com>
|
Geoffrey Garside <ggarside@gmail.com>
|
||||||
Han Choongwoo <cwhan.tunz@gmail.com>
|
Han Choongwoo <cwhan.tunz@gmail.com>
|
||||||
Hirofumi Mako <mkhrfm@gmail.com>
|
Hirofumi Mako <mkhrfm@gmail.com>
|
||||||
Honggyu Kim <nexus226@gmail.com>
|
Honggyu Kim <honggyu.kp@gmail.com>
|
||||||
Ioseb Dzmanashvili <ioseb.dzmanashvili@gmail.com>
|
Ioseb Dzmanashvili <ioseb.dzmanashvili@gmail.com>
|
||||||
Isiah Meadows <impinball@gmail.com>
|
Isiah Meadows <impinball@gmail.com>
|
||||||
Jan de Mooij <jandemooij@gmail.com>
|
Jan de Mooij <jandemooij@gmail.com>
|
||||||
|
@ -167,7 +167,7 @@ class FindAnywhere (gdb.Command):
|
|||||||
"find 0x%s, 0x%s, %s" % (startAddr, endAddr, value),
|
"find 0x%s, 0x%s, %s" % (startAddr, endAddr, value),
|
||||||
to_string = True)
|
to_string = True)
|
||||||
if result.find("not found") == -1:
|
if result.find("not found") == -1:
|
||||||
print result
|
print(result)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user