diff options
author | Sebastien Hertz <shertz@google.com> | 2015-02-05 16:30:58 +0100 |
---|---|---|
committer | Sebastien Hertz <shertz@google.com> | 2015-02-05 18:28:54 +0100 |
commit | 3be6e9d904baa13d7cf51dfc6742dea12e766b2e (patch) | |
tree | 43ad5f3655d73243ab212eefb83169471a1d87b3 /runtime/jdwp | |
parent | 24898d447640c3a45e6fc9f404b049eddc5a2709 (diff) | |
download | art-3be6e9d904baa13d7cf51dfc6742dea12e766b2e.zip art-3be6e9d904baa13d7cf51dfc6742dea12e766b2e.tar.gz art-3be6e9d904baa13d7cf51dfc6742dea12e766b2e.tar.bz2 |
Read JDWP options from runtime
Allocates JDWP::JdwpOptions on the heap and copies parsed options to
avoid the need to include jdwp/jdwp.h into runtime.h file.
Also does some minor cleanup and removes the old JDWP options parsing
code that became dead code after we move it to the new command-line
parser.
Bug: 19275792
Change-Id: I71901c89fbf2cc3c1901a089e2a98b4326c6ee70
Diffstat (limited to 'runtime/jdwp')
-rw-r--r-- | runtime/jdwp/jdwp.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/jdwp/jdwp.h b/runtime/jdwp/jdwp.h index 6464a62..9f37998 100644 --- a/runtime/jdwp/jdwp.h +++ b/runtime/jdwp/jdwp.h @@ -101,11 +101,11 @@ enum JdwpTransportType { std::ostream& operator<<(std::ostream& os, const JdwpTransportType& rhs); struct JdwpOptions { - JdwpTransportType transport; - bool server; - bool suspend; - std::string host; - uint16_t port; + JdwpTransportType transport = kJdwpTransportUnknown; + bool server = false; + bool suspend = false; + std::string host = ""; + uint16_t port = static_cast<uint16_t>(-1); }; bool operator==(const JdwpOptions& lhs, const JdwpOptions& rhs); |