From fbc76accc1d3205343503193aa9d55c5c54e1144 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Mon, 12 Jan 2015 15:17:40 -0800 Subject: [PATCH] Make --gdb explain that it doesn't work right now I'm not quite sure how to solve this especially considering android. I likely should use 'gdbserve' but I was not able to get that to work reliably. At least this makes it less confusing that --gdb doesn't just silently fail. R=abarth@chromium.org, hansmuller@chromium.org, ojan@chromium.org BUG= Review URL: https://codereview.chromium.org/850533004 --- engine/src/flutter/tools/skydb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/tools/skydb b/engine/src/flutter/tools/skydb index ad4ceed1be..191d6d1de9 100755 --- a/engine/src/flutter/tools/skydb +++ b/engine/src/flutter/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)