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

Issue 115709: Unload debugger when message handler is cleared (Closed)

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

Description

When message handler is set to NULL and there is no debugger listener the debugger is unloaded immediately unless it's entered, in which case it will be unloaded when last instance of EnterDebugger is destroyed. Without the change the debugger may crash as Debugger::EventActive(v8::Break) called from OnDebugBreak may clear current debugger context. Also when compilation cache was enabled debugger could fail on second attach for the same reason(see AfterCompileMessageWhenMessageHandlerIsReset). BUG=12404 Committed: http://code.google.com/p/v8/source/detail?r=2035

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -23 lines) Patch
M src/debug.h View 3 chunks +3 lines, -2 lines 0 comments Download
M src/debug.cc View 4 chunks +18 lines, -18 lines 0 comments Download
M test/cctest/test-debug.cc View 1 2 9 chunks +113 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
yurys
11 years, 7 months ago (2009-05-22 17:31:57 UTC) #1
apavlov
Minor comment-related comments :) The solution seems reasonable but I'll leave the logics check to ...
11 years, 7 months ago (2009-05-22 22:24:13 UTC) #2
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/115709/diff/1003/1004 File test/cctest/test-debug.cc (right): http://codereview.chromium.org/115709/diff/1003/1004#newcode4958 Line 4958: // Call f while enabeling and disabling ...
11 years, 7 months ago (2009-05-25 07:18:29 UTC) #3
yurys
11 years, 7 months ago (2009-05-25 07:50:18 UTC) #4
http://codereview.chromium.org/115709/diff/1003/1004
File test/cctest/test-debug.cc (right):

http://codereview.chromium.org/115709/diff/1003/1004#newcode4918
Line 4918: // Tests that after compile event is sent as many times as there
scripts
On 2009/05/22 22:24:13, apavlov wrote:
> as there scripts compiled -> as there are scripts compiled

Done.

http://codereview.chromium.org/115709/diff/1003/1004#newcode4934
Line 4934: // Setting listener to should cause debugger unload.
On 2009/05/22 22:24:13, apavlov wrote:
> ..to NULL..

Done.

http://codereview.chromium.org/115709/diff/1003/1004#newcode4958
Line 4958: // Call f while enabeling and disabling the script break point.
On 2009/05/25 07:18:29, Søren Gjesse wrote:
> I don't understand the comment what script break point is enabled/disabled?
Done. It's a result of copy/paste.

http://codereview.chromium.org/115709/diff/1003/1004#newcode4993
Line 4993: // Call f while enabeling and disabling the script break point.
On 2009/05/25 07:18:29, Søren Gjesse wrote:
> ditto

Done. Removed the confusing comment.

http://codereview.chromium.org/115709/diff/1003/1004#newcode4993
Line 4993: // Call f while enabeling and disabling the script break point.
On 2009/05/22 22:24:13, apavlov wrote:
> ditto

Done.

Powered by Google App Engine
This is Rietveld 408576698