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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user