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

Issue 242034: Redo "running" field in debug-delay.js and support "suspend" command (Closed)

Created:
11 years, 2 months ago by Peter Rybin
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Redo "running" field in debug-delay.js and support "suspend" command It also fixes "backtrace" command so that it didn't give away random stack if we are running Committed: http://code.google.com/p/v8/source/detail?r=3077

Patch Set 1 #

Total comments: 6

Patch Set 2 : split field in 2 #

Patch Set 3 : follow codereview #

Total comments: 6

Patch Set 4 : tests added #

Patch Set 5 : clean-up #

Patch Set 6 : clean-up #

Total comments: 28

Patch Set 7 : follow codereview #

Patch Set 8 : follow code-review #

Total comments: 4

Patch Set 9 : merge #

Patch Set 10 : fix the test #

Patch Set 11 : do not remove body from backtrace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -98 lines) Patch
M src/debug.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +23 lines, -14 lines 0 comments Download
M src/debug-delay.js View 1 2 3 4 5 6 7 8 9 10 7 chunks +20 lines, -11 lines 0 comments Download
M test/mjsunit/debug-backtrace.js View 4 5 6 7 8 9 10 4 chunks +20 lines, -2 lines 0 comments Download
M test/mjsunit/debug-changebreakpoint.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/debug-clearbreakpoint.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/debug-clearbreakpointgroup.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/debug-continue.js View 4 5 3 chunks +16 lines, -15 lines 0 comments Download
M test/mjsunit/debug-evaluate.js View 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M test/mjsunit/debug-evaluate-recursive.js View 4 5 6 7 4 chunks +14 lines, -14 lines 0 comments Download
M test/mjsunit/debug-handle.js View 8 chunks +26 lines, -23 lines 0 comments Download
M test/mjsunit/debug-mirror-cache.js View 4 chunks +5 lines, -5 lines 0 comments Download
M test/mjsunit/debug-references.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/debug-scopes.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/mjsunit/debug-scripts-request.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/debug-setbreakpoint.js View 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/debug-suspend.js View 4 5 6 7 8 9 1 chunk +96 lines, -0 lines 0 comments Download
M test/mjsunit/regress/regress-1081309.js View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Peter Rybin
11 years, 2 months ago (2009-09-28 17:42:25 UTC) #1
yurys
Please add a test for that change and update wiki page with the protocol description. ...
11 years, 2 months ago (2009-09-28 18:08:15 UTC) #2
Peter Rybin
http://codereview.chromium.org/242034/diff/1/2 File src/debug-delay.js (right): http://codereview.chromium.org/242034/diff/1/2#newcode1110 Line 1110: // Handler may set this field to contol ...
11 years, 2 months ago (2009-09-28 18:20:36 UTC) #3
Søren Thygesen Gjesse
Maybe renaming "running" to "continue" in debug-delay.js would make it more clear whats is happening. ...
11 years, 2 months ago (2009-09-29 11:30:54 UTC) #4
Peter Rybin
Hi Soren Thanks for looking at this CL. I'm trying to refactor our code a ...
11 years, 2 months ago (2009-09-29 11:51:32 UTC) #5
Peter Rybin
I changed debug.cc (moved running out of the cycle to preserve its value if failed ...
11 years, 2 months ago (2009-09-29 20:41:53 UTC) #6
Søren Thygesen Gjesse
If you need some way of checking whether the VM is running you should add ...
11 years, 2 months ago (2009-09-30 09:19:15 UTC) #7
Peter Rybin
Hi Soren Sorry for not replying earlier -- I was on vacation. On 2009/09/30 09:19:15, ...
11 years, 2 months ago (2009-10-05 15:29:26 UTC) #8
Peter Rybin
http://codereview.chromium.org/242034/diff/2009/2010 File src/debug-delay.js (right): http://codereview.chromium.org/242034/diff/2009/2010#newcode798 Line 798: ExecutionState.prototype.debugCommandProcessor = function(is_running_initial) { On 2009/09/30 09:19:15, Søren ...
11 years, 2 months ago (2009-10-05 16:26:22 UTC) #9
Peter Rybin
ping
11 years, 2 months ago (2009-10-14 11:44:22 UTC) #10
yurys
11 years, 2 months ago (2009-10-14 12:01:28 UTC) #11
LGTM with comments

http://codereview.chromium.org/242034/diff/4005/11003
File test/mjsunit/debug-backtrace.js (right):

http://codereview.chromium.org/242034/diff/4005/11003#newcode69
Line 69: return null;
you can instead use assertFalse(!!response.body()... below

http://codereview.chromium.org/242034/diff/4005/11008
File test/mjsunit/debug-evaluate-recursive.js (right):

http://codereview.chromium.org/242034/diff/4005/11008#newcode89
Line 89: testRequest(exec_state, '{"expression":"f()","disable_break":true}',
true, 1);
long lines: 89,90,92,93

http://codereview.chromium.org/242034/diff/4005/11012
File test/mjsunit/debug-references.js (right):

http://codereview.chromium.org/242034/diff/4005/11012#newcode69
Line 69: assertEquals(response.running, dcp.isRunning(), request + ' -> expected
not running');
long line

http://codereview.chromium.org/242034/diff/4005/11016
File test/mjsunit/debug-suspend.js (right):

http://codereview.chromium.org/242034/diff/4005/11016#newcode48
Line 48: function testArguments(exec_state) {
please inline or rename this method

Powered by Google App Engine
This is Rietveld 408576698