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

Issue 10572028: Implement the linux debugger wire protocol. (Closed)

Created:
8 years, 6 months ago by hausner
Modified:
8 years, 6 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, devoncarew, keertip
Visibility:
Public.

Description

Implement the linux debugger wire protocol. Platform-dependent code of the Linux version of the debugger wire protocol. Committed: https://code.google.com/p/dart/source/detail?r=8913

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -3 lines) Patch
M runtime/bin/dbg_connection_linux.h View 2 chunks +12 lines, -0 lines 2 comments Download
M runtime/bin/dbg_connection_linux.cc View 1 chunk +91 lines, -3 lines 8 comments Download

Messages

Total messages: 4 (0 generated)
hausner
8 years, 6 months ago (2012-06-19 23:58:48 UTC) #1
hausner
Adding Devon and Keerti.
8 years, 6 months ago (2012-06-20 00:00:08 UTC) #2
siva
lgtm http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_linux.cc File runtime/bin/dbg_connection_linux.cc (right): http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_linux.cc#newcode15 runtime/bin/dbg_connection_linux.cc:15: int DebuggerConnectionImpl::wakeup_fds_[2] = {-1, -1}; It is not ...
8 years, 6 months ago (2012-06-20 00:53:31 UTC) #3
hausner
8 years, 6 months ago (2012-06-20 16:05:58 UTC) #4
Thank you for the review Siva.

http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_lin...
File runtime/bin/dbg_connection_linux.cc (right):

http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_lin...
runtime/bin/dbg_connection_linux.cc:15: int
DebuggerConnectionImpl::wakeup_fds_[2] = {-1, -1};
On 2012/06/20 00:53:31, asiva wrote:
> It is not clear when epoll_fd_, wakeup_fds_ and listener_fd_ is closed.
They are currently never closed. The Socket class does not have a close
function. I'm adding a todo and will add a Socket::Close function later. It is
also needed in the platform-independent code in dbg_connection.cc.

http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_lin...
runtime/bin/dbg_connection_linux.cc:65: result =
TEMP_FAILURE_RETRY(pipe(wakeup_fds_));
On 2012/06/20 00:53:31, asiva wrote:
> int result = TEMP....
> instead of two lines.

Done.

http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_lin...
runtime/bin/dbg_connection_linux.cc:87: // Register the wakeup_fd with the epoll
instance.
On 2012/06/20 00:53:31, asiva wrote:
> Register the listener_fd_ with the epoll instance.

Done.

http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_lin...
runtime/bin/dbg_connection_linux.cc:106: 
On 2012/06/20 00:53:31, asiva wrote:
> wasted space.

What, the empty line after the }  ?

I'll add a TODO to remove the empty line :)

http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_lin...
File runtime/bin/dbg_connection_linux.h (right):

http://codereview.chromium.org/10572028/diff/1/runtime/bin/dbg_connection_lin...
runtime/bin/dbg_connection_linux.h:7: 
On 2012/06/20 00:53:31, asiva wrote:
> extra blank line?

Done.

Powered by Google App Engine
This is Rietveld 408576698