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

Issue 52012: Extend debugger agent protocol with a connect message (Closed)

Created:
11 years, 9 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Extend debugger agent protocol with a connect message.Added a name of the embedding application when enabeling the debugger agent.Send a connection message from the debugger agent to the remote debugger when connecting. This message contains the V8 version, the protcol version (currently 1) and the name of the embedding application. Currently this information is just printed raw as received. Committed: http://code.google.com/p/v8/source/detail?r=1579

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -13 lines) Patch
M include/v8-debug.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/api.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/d8.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/d8-debug.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/debug.h View 1 chunk +1 line, -1 line 0 comments Download
M src/debug.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/debug-agent.h View 1 3 chunks +6 lines, -2 lines 0 comments Download
M src/debug-agent.cc View 5 chunks +59 lines, -1 line 0 comments Download
M test/cctest/test-debug.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
11 years, 9 months ago (2009-03-23 13:50:44 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/52012/diff/1/11 File SConstruct (right): http://codereview.chromium.org/52012/diff/1/11#newcode41 Line 41: }, Oops! http://codereview.chromium.org/52012/diff/1/9 File src/debug-agent.cc (right): http://codereview.chromium.org/52012/diff/1/9#newcode301 ...
11 years, 9 months ago (2009-03-23 15:39:26 UTC) #2
Søren Thygesen Gjesse
11 years, 9 months ago (2009-03-23 22:09:23 UTC) #3
http://codereview.chromium.org/52012/diff/1/11
File SConstruct (right):

http://codereview.chromium.org/52012/diff/1/11#newcode41
Line 41: },
On 2009/03/23 15:39:26, Erik Corry wrote:
> Oops!

This file made it into this CL by accident - removed from CL.

http://codereview.chromium.org/52012/diff/1/9
File src/debug-agent.cc (right):

http://codereview.chromium.org/52012/diff/1/9#newcode301
Line 301: "Type: connect\n");
On 2009/03/23 15:39:26, Erik Corry wrote:
> Normally if you have ASCII content on a socket it is sent with cr-lf.  At
least
> that's what HTTP does and what telnet expects.

You are right - I should have checked REF-822/RFC-2616. I will make it compliant
in a new CL.

http://codereview.chromium.org/52012/diff/1/10
File src/debug-agent.h (right):

http://codereview.chromium.org/52012/diff/1/10#newcode61
Line 61: SmartPointer<const char> name_;  // Name of the embedding application.
On 2009/03/23 15:39:26, Erik Corry wrote:
> I'm not sure you can use a SmartPointer this way.  They are pretty dumb you
> know.  :-) Check out the copy constructor for example.  I think this is the
> first time someone has tried to use one for a member variable.

Changed name_(name) to name_(StrDup(name)). This should fill the SmartPointer
with a char array allocated using NewArray.

Powered by Google App Engine
This is Rietveld 408576698