Make adbconnection validate jdwpOptions and change defaults
The (libjdwp) default argument values are not entirely compatible with
adbconnection. This means that if you manually ran dalvikvm with
-XjdwpProvider:adbconnection and no -XjdwpOptions the jdwp thread
would deadlock. In order to prevent this from happening adbconnection
will now validate that the explictly passed in parameters are usable
and will add in required arguments automatically if they are not
present.
Test: dalvikvm -XjdwpProvider:adbconnection -cp testing.dex loop &
adb forward tcp:12345 jdwp:<pid of dalvikvm>
jdb -attach localhost:12345
Test: dalvikvm -XjdwpProvider:adbconnection \
-XjdwpOptions:server=n \
-cp testing.dex loop;
ensure process exits and check logcat for error message.
Change-Id: I8e26a9f4479ea8c324f741b9835bbc1fe8407047
1 file changed