diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-22 12:17:25 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-22 12:17:25 +0000 |
commit | 8dfe0bc747b04b300fc358cf8ba79e9d34013487 (patch) | |
tree | 17f0096b7e11f84a339c811cbaf321a843ef6169 | |
parent | 59bee1c4fa13fcff3a1735e6f05c01ec8a1b4e6b (diff) | |
download | chromium_src-8dfe0bc747b04b300fc358cf8ba79e9d34013487.zip chromium_src-8dfe0bc747b04b300fc358cf8ba79e9d34013487.tar.gz chromium_src-8dfe0bc747b04b300fc358cf8ba79e9d34013487.tar.bz2 |
Remove debugging code from gypv8sh.py
Since upgrading the builder to 10.8, it never failed again.
BUG=370551
R=thakis@chromium.org
Review URL: https://codereview.chromium.org/401103006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284668 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | tools/gypv8sh.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tools/gypv8sh.py b/tools/gypv8sh.py index 8e8fd59..3f81a8b 100755 --- a/tools/gypv8sh.py +++ b/tools/gypv8sh.py @@ -47,41 +47,6 @@ def main (): p = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=0) out, err = p.communicate() - if p.returncode: - # TODO(jochen): Remove once crbug.com/370551 is resolved. - if sys.platform == 'darwin': - sys.path.insert(0, '/Developer/Library/PrivateFrameworks/' - 'LLDB.framework/Resources/Python') - try: - import lldb - except: - raise Exception("Could not load lldb module") - debugger = lldb.SBDebugger.Create() - debugger.SetAsync(False) - target = debugger.CreateTargetWithFileAndArch( - cmd[0], lldb.LLDB_ARCH_DEFAULT) - if not target: - raise Exception("Failed to create d8 target") - process = target.LaunchSimple(cmd[1:], None, os.getcwd()) - if not process: - raise Exception("Failed to start d8") - if process.GetState() == lldb.eStateStopped: - for thread in process: - print "Thread (id %d)" % thread.GetThreadID() - for frame in thread: - print frame - print "" - raise Exception( - "d8 crashed, please report this at http://crbug.com/370551") - else: - # For some reason d8 worked this time... - out = '' - while True: - s = process.GetSTDOUT(4096) - if s == '': - break - out += s - with open(cxxoutfile, 'wb') as f: f.write(out) shutil.copyfile(inputfile, jsoutfile) |