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

Issue 8826007: First bits of external debugger API (Closed)

Created:
9 years ago by hausner
Modified:
9 years ago
Reviewers:
siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

First bits of external debugger API The debugger API is in a separate set of files. Embedders do not have to include the debug api if they don't need to. Committed: https://code.google.com/p/dart/source/detail?r=2198

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 34

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -66 lines) Patch
M runtime/bin/bin.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 6 chunks +52 lines, -4 lines 0 comments Download
M runtime/dart-runtime.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A runtime/include/dart_debugger_api.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M runtime/vm/code_generator_ia32.cc View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 chunks +2 lines, -6 lines 0 comments Download
M runtime/vm/debugger.h View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 7 chunks +35 lines, -52 lines 0 comments Download
A runtime/vm/debugger_api_impl.cc View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hausner
9 years ago (2011-12-06 22:58:33 UTC) #1
siva
LGTM once comments are addressed. http://codereview.chromium.org/8826007/diff/1004/runtime/bin/bin.gypi File runtime/bin/bin.gypi (right): http://codereview.chromium.org/8826007/diff/1004/runtime/bin/bin.gypi#newcode90 runtime/bin/bin.gypi:90: '../include/dart_dapi.h', dapi seems so ...
9 years ago (2011-12-07 05:44:48 UTC) #2
hausner
Thanks! http://codereview.chromium.org/8826007/diff/5004/runtime/bin/bin.gypi File runtime/bin/bin.gypi (right): http://codereview.chromium.org/8826007/diff/5004/runtime/bin/bin.gypi#newcode90 runtime/bin/bin.gypi:90: '../include/dart_dapi.h', On 2011/12/07 05:44:48, asiva wrote: > would ...
9 years ago (2011-12-07 22:14:26 UTC) #3
siva
http://codereview.chromium.org/8826007/diff/5004/runtime/vm/dart_dapi_impl.cc File runtime/vm/dart_dapi_impl.cc (right): http://codereview.chromium.org/8826007/diff/5004/runtime/vm/dart_dapi_impl.cc#newcode30 runtime/vm/dart_dapi_impl.cc:30: DARTSCOPE(isolate); Does that mean you will implement the delete ...
9 years ago (2011-12-07 22:27:08 UTC) #4
hausner
9 years ago (2011-12-07 22:36:49 UTC) #5
http://codereview.chromium.org/8826007/diff/5004/runtime/vm/dart_dapi_impl.cc
File runtime/vm/dart_dapi_impl.cc (right):

http://codereview.chromium.org/8826007/diff/5004/runtime/vm/dart_dapi_impl.cc...
runtime/vm/dart_dapi_impl.cc:30: DARTSCOPE(isolate);
On 2011/12/07 22:27:08, asiva wrote:
> Does that mean you will implement the delete API also in terms of
> library/class/function name and not by passing in the Dart_Breakpoint object?
> 
> On 2011/12/07 22:14:26, hausner wrote:
> > On 2011/12/07 05:44:48, asiva wrote:
> > > In the dart API functions we normally check for valid input and return
> errors.
> > > In this case we should check and return an error if breakpoint == NULL.
> > 
> > The idea was to allow NULL as a valid value. The caller may not want to get
a
> > pointer to the Breakpoint object.
> 

Hmm, good point. I'm pretty sure there will also be a way to enumerate
breakpoints at some time, but maybe it would make sense to require the parameter
to be non-null. I'll leave this for the next change.

http://codereview.chromium.org/8826007/diff/5004/runtime/vm/dart_dapi_impl.cc...
runtime/vm/dart_dapi_impl.cc:54: return Api::Error("Breakpoint target function
does not exist");
On 2011/12/07 22:27:08, asiva wrote:
> Yes, the fully qualified function name (i.e library, class, function).
> 
> On 2011/12/07 22:14:26, hausner wrote:
> > On 2011/12/07 05:44:48, asiva wrote:
> > > I guess the error message needs to be more descriptive....
> > 
> > How? You mean by including the function name?
> 

Ok, will do in the next CL.

Powered by Google App Engine
This is Rietveld 408576698