summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2017-12-14 11:58:21 -0800
committerAlex Light <allight@google.com>2017-12-19 14:52:01 -0800
commit3979571aa1dfc907569fb7e27ab225ca89f6f86e (patch)
treefd91ada65bffa3fcefc773a36cbf8055bf688a1c /compiler/optimizing/graph_visualizer.cc
parent403207107da7f11525c4d305184c56b35ec1c17a (diff)
Add fd-forwarding transport lib
dt_fd_forward is a jdwpTransport that takes as an address a local socket file-descriptor and uses it to allow some other piece of code or program to control the actual attach and communication process. tools/dt_fds_forward.py is a python program that can be used as a controller for this comms system. This is useful for testing. It implements the same behavior (excepting DDMS) that the adbconnection plugin will but is capable of being easily used on normal host machines. Unlike the plugin, dt_fds_forward.py works by allowing a socket file-descriptor to be inherited by the forked Java Language Runtime. The overall goal of this transport is to use it to allow us to safely multiplex the out-bound data with DDMS data. This is needed to let us match current DDMS behavior which transmits packets in the blind on the same channel JDWP traffic is sent on. Test: ./tools/dt_fds_forward.py \ ./test/run-test --host --dev 001-HelloWorld Test: jdb -attach localhost:12345 Test: nc localhost 12345, handshake, disconnect Test: jdb -attach localhost:12345, detach, attach Test: ./tools/dt_fds_forward.py \ --debug-lib $JAVA_HOME/jre/lib/amd64/libjdwp.so \ -- \ ./test/run-test --host --jvm --dev 001-HelloWorld Test: jdb -attach localhost:12345 Bug: 62821960 Bug: 69169846 Change-Id: I654db6c6991c006933e1e1f0a4e41c13f795f9a8
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions