summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-08 13:11:37 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-08 13:11:37 +0000
commit60fe970c211224a8bcb9a6763c7e32b080793f7a (patch)
tree06d2728faa9540dd1d6f5854f83de27f959c7367
parent8c5a0a0efdb9adcb5133d9795e3a52565e25861e (diff)
downloadchromium_src-60fe970c211224a8bcb9a6763c7e32b080793f7a.zip
chromium_src-60fe970c211224a8bcb9a6763c7e32b080793f7a.tar.gz
chromium_src-60fe970c211224a8bcb9a6763c7e32b080793f7a.tar.bz2
Add more debugging output to gypv8sh
BUG=370551 R=marja@chromium.org Review URL: https://codereview.chromium.org/377893002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281734 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xtools/gypv8sh.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gypv8sh.py b/tools/gypv8sh.py
index 8245f5b..0c3d096 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)