summaryrefslogtreecommitdiffstats
path: root/src/debug-debugger.js
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-05-21 11:50:48 +0100
committerKristian Monsen <kristianm@google.com>2010-05-21 12:01:46 +0100
commit25f6136652d8341ed047e7fc1a450af5bd218ea9 (patch)
tree1aaefdeb728884cf07eccd51130ba7438611ce6d /src/debug-debugger.js
parent388eba4e819805cb37ffe18231f53c79102356ae (diff)
downloadandroid_external_v8-25f6136652d8341ed047e7fc1a450af5bd218ea9.tar.gz
android_external_v8-25f6136652d8341ed047e7fc1a450af5bd218ea9.tar.bz2
android_external_v8-25f6136652d8341ed047e7fc1a450af5bd218ea9.zip
Merge WebKit at r59636: Update v8 to r4660.
Will build and run with current webkit. Change-Id: I57bae621fd894da363ba84e1757ad09eb7c502b9
Diffstat (limited to 'src/debug-debugger.js')
-rw-r--r--src/debug-debugger.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/debug-debugger.js b/src/debug-debugger.js
index e94cee41..77fa1ddd 100644
--- a/src/debug-debugger.js
+++ b/src/debug-debugger.js
@@ -1266,6 +1266,8 @@ DebugCommandProcessor.prototype.processDebugJSONRequest = function(json_request)
this.clearBreakPointRequest_(request, response);
} else if (request.command == 'clearbreakpointgroup') {
this.clearBreakPointGroupRequest_(request, response);
+ } else if (request.command == 'listbreakpoints') {
+ this.listBreakpointsRequest_(request, response);
} else if (request.command == 'backtrace') {
this.backtraceRequest_(request, response);
} else if (request.command == 'frame') {
@@ -1581,6 +1583,35 @@ DebugCommandProcessor.prototype.clearBreakPointRequest_ = function(request, resp
response.body = { breakpoint: break_point }
}
+DebugCommandProcessor.prototype.listBreakpointsRequest_ = function(request, response) {
+ var array = [];
+ for (var i = 0; i < script_break_points.length; i++) {
+ var break_point = script_break_points[i];
+
+ var description = {
+ number: break_point.number(),
+ line: break_point.line(),
+ column: break_point.column(),
+ groupId: break_point.groupId(),
+ hit_count: break_point.hit_count(),
+ active: break_point.active(),
+ condition: break_point.condition(),
+ ignoreCount: break_point.ignoreCount()
+ }
+
+ if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
+ description.type = 'scriptId';
+ description.script_id = break_point.script_id();
+ } else {
+ description.type = 'scriptName';
+ description.script_name = break_point.script_name();
+ }
+ array.push(description);
+ }
+
+ response.body = { breakpoints: array }
+}
+
DebugCommandProcessor.prototype.backtraceRequest_ = function(request, response) {
// Get the number of frames.