Index: tools/gypv8sh.py |
diff --git a/tools/gypv8sh.py b/tools/gypv8sh.py |
index 8245f5b276ccce7a8746e592f48602a17c227e63..0c3d096368de38c92ae5ea053d7eaf7f21f3a6fd 100755 |
--- a/tools/gypv8sh.py |
+++ b/tools/gypv8sh.py |
@@ -48,6 +48,13 @@ def main (): |
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': |
+ cmd[:0] = [ |
+ 'gdb', '-batch', '-ex', 'run', '-ex' 'bt', '-ex', 'quit', '-args'] |
+ p = subprocess.Popen( |
+ cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=0) |
+ out, err = p.communicate() |
raise Exception('Failed to run d8', out, err) |
with open(cxxoutfile, 'wb') as f: |
f.write(out) |