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

Issue 110913002: Transmit breakpoint id on paused event (Closed)

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

Description

Transmit breakpoint id on paused event Breakpoint callback get an additional parameter to receive the id of the breakpoint that was hit, or 0 if the debugger pauses due to stepping. R=turnidge@google.com Committed: https://code.google.com/p/dart/source/detail?r=31029

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -32 lines) Patch
M runtime/bin/dbg_message.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/dbg_message.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M runtime/include/dart_debugger_api.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M runtime/vm/debugger.h View 1 2 2 chunks +17 lines, -7 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 6 chunks +9 lines, -11 lines 0 comments Download
M runtime/vm/debugger_api_impl.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M runtime/vm/debugger_api_impl_test.cc View 1 2 12 chunks +13 lines, -1 line 0 comments Download
M tools/ddbg.dart View 1 2 7 chunks +4 lines, -9 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hausner
7 years ago (2013-12-09 23:40:38 UTC) #1
turnidge
lgtm with comments. Thanks for making this change. https://codereview.chromium.org/110913002/diff/20001/runtime/bin/dbg_message.cc File runtime/bin/dbg_message.cc (right): https://codereview.chromium.org/110913002/diff/20001/runtime/bin/dbg_message.cc#newcode1077 runtime/bin/dbg_message.cc:1077: } ...
7 years ago (2013-12-10 17:17:18 UTC) #2
hausner
Committed patchset #3 manually as r31029 (presubmit successful).
7 years ago (2013-12-10 17:41:15 UTC) #3
hausner
Thank you. https://codereview.chromium.org/110913002/diff/20001/runtime/bin/dbg_message.cc File runtime/bin/dbg_message.cc (right): https://codereview.chromium.org/110913002/diff/20001/runtime/bin/dbg_message.cc#newcode1077 runtime/bin/dbg_message.cc:1077: } On 2013/12/10 17:17:18, turnidge wrote: > ...
7 years ago (2013-12-10 17:44:37 UTC) #4
turnidge
7 years ago (2013-12-10 18:55:23 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/110913002/diff/20001/runtime/vm/debugger.h
File runtime/vm/debugger.h (right):

https://codereview.chromium.org/110913002/diff/20001/runtime/vm/debugger.h#ne...
runtime/vm/debugger.h:272: Dart_Port isolate_id;
On 2013/12/10 17:44:37, hausner wrote:
> On 2013/12/10 17:17:18, turnidge wrote:
> > At some point this may grow out of being a struct and may be better as a
tree
> of
> > classes.  Not now, but something to consider.
> 
> I try not to be baroque. It's just a struct with a function that initializes
the
> fields automatically when declared.

Yeah, agreed that being unnecessarily baroque is not good.

The counter argument (which we all know) goes like this:

- we need to maintain an explicit 'type' (instead of using C++ types)
- we need to sometimes use a field or not depending on the 'type', enforced by
convetion (instead of using subclassing, enforced by compiler)
- we probably have some dispatching code somewhere based on this 'type' (instead
of virtual dispatch)

Don't care for this review, though.

Powered by Google App Engine
This is Rietveld 408576698