Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: tools/cr/cr/commands/debug.py

Issue 142933004: [cr tool] Make context implicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/cr/cr/commands/command.py ('k') | tools/cr/cr/commands/info.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « tools/cr/cr/commands/command.py ('k') | tools/cr/cr/commands/info.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698