|
Beginnings of a debugger wire protocol
The debugger wire handler is implemented similarly to the io event handler.
A dedicated thread monitors the debugger port for incoming connection
requests. When a debugger is connected, the VM sends events messages
over the wire and handles debugger requests.
To start the VM with a debugger connection, use the option
--debug:<portnumber>. The VM pauses at the beginning of main()
and waits for a debugger to connect.
Subsequent changes will implement debugger commands one by one.
With this change, the VM only understands "resume" commands.
Committed: https://code.google.com/p/dart/source/detail?r=7330
Total comments: 26
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1190 lines, -485 lines) |
Patch |
|
M |
runtime/bin/builtin_impl_sources.gypi
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/dbg_connection.h
|
View
|
1
2
3
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/dbg_connection.cc
|
View
|
1
2
3
|
1 chunk |
+273 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/dbg_connection_linux.h
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/dbg_connection_linux.cc
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/dbg_connection_macos.h
|
View
|
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/dbg_connection_macos.cc
|
View
|
1
2
|
1 chunk |
+158 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/dbg_connection_win.h
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/dbg_connection_win.cc
|
View
|
1
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/fdutils.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/fdutils_linux.cc
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/bin/fdutils_macos.cc
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/bin/main.cc
|
View
|
1
2
3
4
|
5 chunks |
+40 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/lib/mirrors.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
runtime/platform/json.h
|
View
|
|
1 chunk |
+133 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/platform/json.cc
|
View
|
|
1 chunk |
+367 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/platform/platform_headers.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/platform/platform_sources.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
D |
runtime/vm/json.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -128 lines |
0 comments
|
Download
|
|
D |
runtime/vm/json.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -349 lines |
0 comments
|
Download
|
|
M |
runtime/vm/json_test.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/vm_sources.gypi
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|