Index: sky/tools/skydb |
diff --git a/sky/tools/skydb b/sky/tools/skydb |
index ad4ceed1be8ea01783139381461be3df935693cb..191d6d1de938973bcf690b0a7aec3384d28a9ba1 100755 |
--- a/sky/tools/skydb |
+++ b/sky/tools/skydb |
@@ -115,10 +115,6 @@ class SkyDebugger(object): |
else: |
shell_command = [self.paths.mojo_shell_path] + shell_args |
- # FIXME: This doesn't work for android |
- if args.gdb: |
- shell_command = ['gdb'] + shell_command |
- |
return shell_command |
def _connect_to_device(self): |
@@ -181,6 +177,12 @@ class SkyDebugger(object): |
print ' '.join(map(pipes.quote, shell_command)) |
self.pids['mojo_shell_pid'] = subprocess.Popen(shell_command).pid |
+ if args.gdb: |
+ print "Sorry, I'm not sure how best to wire up --gdb to work" |
+ print "with mojo_shell as a background process. For now use:" |
+ print "gdb --pid %s" % self.pids['mojo_shell_pid'] |
+ shell_command = ['gdb'] + shell_command |
+ |
if not self._wait_for_sky_command_port(): |
logging.error('Failed to start sky') |
self.stop_command(None) |