| Index: tools/cr/cr/commands/debug.py
|
| diff --git a/tools/cr/cr/commands/debug.py b/tools/cr/cr/commands/debug.py
|
| index 48fb513b3cca61e1b1eaa8fcc08a73bb739d3da6..f113691833cfe52e06d529cbf0c4e56db8a6357d 100644
|
| --- a/tools/cr/cr/commands/debug.py
|
| +++ b/tools/cr/cr/commands/debug.py
|
| @@ -27,14 +27,14 @@ class DebugCommand(cr.Command):
|
| self.ConsumeArgs(parser, 'the binary')
|
| return parser
|
|
|
| - def Run(self, context):
|
| - targets = cr.Target.GetTargets(context)
|
| - if not cr.Debugger.ShouldInvoke(context):
|
| - cr.Debugger.Attach(context, targets, context.remains)
|
| - elif cr.Installer.Skipping(context):
|
| - cr.Debugger.Restart(context, targets, context.remains)
|
| + def Run(self):
|
| + targets = cr.Target.GetTargets()
|
| + if not cr.Debugger.ShouldInvoke():
|
| + cr.Debugger.Attach(targets, cr.context.remains)
|
| + elif cr.Installer.Skipping():
|
| + cr.Debugger.Restart(targets, cr.context.remains)
|
| else:
|
| - cr.Builder.Build(context, targets, [])
|
| - cr.Debugger.Kill(context, targets, [])
|
| - cr.Installer.Reinstall(context, targets, [])
|
| - cr.Debugger.Invoke(context, targets, context.remains)
|
| + cr.Builder.Build(targets, [])
|
| + cr.Debugger.Kill(targets, [])
|
| + cr.Installer.Reinstall(targets, [])
|
| + cr.Debugger.Invoke(targets, cr.context.remains)
|
|
|