Index: mojo/devtools/common/mojo_debug |
diff --git a/mojo/devtools/common/mojo_debug b/mojo/devtools/common/mojo_debug |
index dc1000b8dd59b6b27c0b04bd53cac7b06b70cec8..cf24971b6c9c5471f93c4c141e0baaf6b3660266 100755 |
--- a/mojo/devtools/common/mojo_debug |
+++ b/mojo/devtools/common/mojo_debug |
@@ -7,6 +7,7 @@ import argparse |
import codecs |
import logging |
import os.path |
+import platform |
import requests |
import signal |
import subprocess |
@@ -194,8 +195,7 @@ def _gdb_attach(args): |
# TODO(etiennej): Always select the most recent toolchain? |
'arm-linux-androideabi-4.9', |
'prebuilt', |
- # TODO(etiennej): DEPS mac NDK and use it on macs. |
- 'linux-x86_64', |
+ '%s-%s' % (platform.system().lower(), platform.machine()), |
'bin', |
'arm-linux-androideabi-gdb') |
python_gdb_script_path = os.path.join(os.path.dirname(__file__), |