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

Unified Diff: runtime/bin/dbg_connection.h

Issue 10383164: Debugger wire protocol: setting breakpoints (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
Index: runtime/bin/dbg_connection.h
===================================================================
--- runtime/bin/dbg_connection.h (revision 7627)
+++ runtime/bin/dbg_connection.h (working copy)
@@ -11,6 +11,7 @@
#include "include/dart_debugger_api.h"
#include "platform/globals.h"
+#include "platform/json.h"
#include "platform/thread.h"
// Declare the OS-specific types ahead of defining the generic class.
#if defined(TARGET_OS_LINUX)
@@ -36,7 +37,14 @@
}
private:
+ static void SendMsg(dart::TextBuffer* msg);
+ static void QueueMsg(dart::TextBuffer* msg);
+ static void SendQueuedMsgs();
+
static void SendBreakpointEvent(Dart_Breakpoint bpt, Dart_StackTrace trace);
+ static void BptResolvedHandler(intptr_t bp_id,
+ Dart_Handle url,
+ intptr_t line_number);
static void BreakpointHandler(Dart_Breakpoint bpt, Dart_StackTrace trace);
static void AcceptDbgConnection(int debug_fd);
@@ -49,9 +57,15 @@
static void HandleStepOutCmd(const char* msg);
static void HandleGetLibraryURLsCmd(const char* json_msg);
static void HandleGetScriptURLsCmd(const char* json_msg);
+ static void HandleGetStackTraceCmd(const char* json_msg);
+ static void HandleSetBpCmd(const char* json_msg);
+ static void HandleUnknownMsg(const char* json_msg);
static void SendError(int msg_id, const char* err_msg);
+ // Text buffer that accumulates messages to be sent to front end.
+ static dart::TextBuffer queued_messages_;
+
static bool handler_started_;
static bool request_resume_;
« lib/json/json.dart ('K') | « lib/json/json.dart ('k') | runtime/bin/dbg_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698