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

Unified Diff: src/d8-debug.cc

Issue 9200006: Fix remote debugger crash. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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
« src/d8-debug.h ('K') | « src/d8-debug.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8-debug.cc
diff --git a/src/d8-debug.cc b/src/d8-debug.cc
index 1cbc0b39a018db7495aa8763d10853bffe5e9695..56f11a732137792a2aef8dc3706631c5f318cc8b 100644
--- a/src/d8-debug.cc
+++ b/src/d8-debug.cc
@@ -159,8 +159,8 @@ void HandleDebugEvent(DebugEvent event,
}
-void RunRemoteDebugger(int port) {
- RemoteDebugger debugger(port);
+void RunRemoteDebugger(int port, Handle<Context> context) {
+ RemoteDebugger debugger(port, context);
debugger.Run();
}
@@ -274,6 +274,7 @@ RemoteDebuggerEvent* RemoteDebugger::GetEvent() {
void RemoteDebugger::HandleMessageReceived(char* message) {
Locker lock;
+ Context::Scope cscope(context_);
HandleScope scope;
// Print the event details.
@@ -303,6 +304,7 @@ void RemoteDebugger::HandleMessageReceived(char* message) {
void RemoteDebugger::HandleKeyboardCommand(char* command) {
Locker lock;
+ Context::Scope cscope(context_);
HandleScope scope;
// Convert the debugger command to a JSON debugger request.
« src/d8-debug.h ('K') | « src/d8-debug.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698