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

Issue 117133005: Change how debugger handles source breakpoints (Closed)

Created:
7 years ago by hausner
Modified:
6 years, 12 months ago
Reviewers:
turnidge
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Change how debugger handles source breakpoints - Identify a source breakpoint by a script and a token position rather than a function object. - When a new breakpoint is set, iterate over all compiled functions to see whether code breakpoints must be set. This change fixes issues with functions that get compiled several times, for example as implicit closures or a copies of mixin functions or local closures of mixing functions. We did not detect all duplicates of functions. Eliminated recently introduced const modifiers in SourceBreakpoint class. They tend to be in the way because several accessor methods of SourceBreakpoint compute data lazily and modify the object as a side effect. Committed: https://code.google.com/p/dart/source/detail?r=31372

Patch Set 1 #

Total comments: 34

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -246 lines) Patch
M runtime/tests/vm/vm.status View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/debugger.h View 1 2 3 3 chunks +22 lines, -15 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 13 chunks +359 lines, -218 lines 0 comments Download
M runtime/vm/debugger_test.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/json_stream.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/json_stream.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/service_test.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/debugger/breakpoint_resolved_test.dart View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M tests/standalone/debugger/debug_lib.dart View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
A tests/standalone/debugger/local_function_test.dart View 1 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hausner
7 years ago (2013-12-19 00:04:02 UTC) #1
hausner
Added a test.
7 years ago (2013-12-19 21:57:24 UTC) #2
turnidge
Hi Matthias - I see you just uploaded a new draft. All of my comments ...
7 years ago (2013-12-19 22:31:58 UTC) #3
hausner
PTAL I eliminated the concept of a token range for unresolved source breakpoints. They now ...
7 years ago (2013-12-21 00:08:32 UTC) #4
hausner
Committed patchset #4 manually as r31372 (presubmit successful).
6 years, 12 months ago (2013-12-26 20:54:05 UTC) #5
hausner
6 years, 12 months ago (2013-12-26 20:54:53 UTC) #6
Message was sent while issue was closed.
TBR=turnidge

I'll address review comments in a separate checkin if necessary.

Powered by Google App Engine
This is Rietveld 408576698