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

Issue 42553: Change the debugger agent protocol to be RFC-822 compilant (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

Change the debugger agent protocol to be RFC-822 compilant. All headers are now terminated with CRLF and not jusr LF. The beginning of the body is indicated by an empty header (just CRLF). Committed: http://code.google.com/p/v8/source/detail?r=1588

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -63 lines) Patch
M src/debug-agent.cc View 1 5 chunks +60 lines, -63 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
11 years, 9 months ago (2009-03-24 08:44:06 UTC) #1
Erik Corry
LGTM with bounds check stuff fixed. http://codereview.chromium.org/42553/diff/1/2 File src/debug-agent.cc (right): http://codereview.chromium.org/42553/diff/1/2#newcode235 Line 235: ASSERT(header_buffer_position < ...
11 years, 9 months ago (2009-03-24 09:03:19 UTC) #2
Søren Thygesen Gjesse
11 years, 9 months ago (2009-03-24 10:14:43 UTC) #3
http://codereview.chromium.org/42553/diff/1/2
File src/debug-agent.cc (right):

http://codereview.chromium.org/42553/diff/1/2#newcode235
Line 235: ASSERT(header_buffer_position < kHeaderBufferSize);
On 2009/03/24 09:03:19, Erik Corry wrote:
> I don't see how you can assert this.  You need a test that overflows the
header
> buffer.

ASSERT changed to assert <= instead of <. Test will be added.

http://codereview.chromium.org/42553/diff/1/2#newcode244
Line 244: for (int i = 0; i < header_buffer_position; i++) {
On 2009/03/24 09:03:19, Erik Corry wrote:
> I think it would be healthier if there was a break on header_buffer[i] == 0
> instead of going past it.

Done.

Powered by Google App Engine
This is Rietveld 408576698