From 60fe970c211224a8bcb9a6763c7e32b080793f7a Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Tue, 8 Jul 2014 13:11:37 +0000 Subject: 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 --- tools/gypv8sh.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.1