OSDN Git Service

Fixed debugger for threads attached from JNI
authorDaniel Mihalyi <daniel.mihalyi@mattakis.com>
Mon, 20 Oct 2014 09:47:56 +0000 (11:47 +0200)
committerDaniel Mihalyi <daniel.mihalyi@mattakis.com>
Mon, 20 Oct 2014 09:50:52 +0000 (11:50 +0200)
commitdfafeef139dbc77e86fdb465d960b4a17a7ac4a0
tree2eaaa8b16f58ba8e7c73167b0996f373d84009ad
parent8946e41dcce414dc3359c23d93e001f91d186612
Fixed debugger for threads attached from JNI

Dbg::PostThreadStart was not invoked in Thread::Attach,
thus when attaching existing native thread to JNI, JDWP
events from that thread are not handled correctly by the
debugger, because the thread keeps being unannounced.

The issue was reproduced on Eclipse 4.3 and 4.4.

Change-Id: I9a330f5cb96857862b18f37047ef87646a1f2aa2
Signed-off-by: Daniel Mihalyi <daniel.mihalyi@mattakis.com>
runtime/thread.cc