OSDN Git Service

Fix single-step in native thread
authorSebastien Hertz <shertz@google.com>
Thu, 28 May 2015 09:00:57 +0000 (11:00 +0200)
committerSebastien Hertz <shertz@google.com>
Thu, 28 May 2015 11:34:22 +0000 (13:34 +0200)
commit1309ba27dd02e0e4dea0e45f8b5500080cbbd703
treecca1b449afd96fdf044a45bd39e8cf2a9721e468
parentdf6ba9a06ac9f4d45f49a1efc14b0d2393003317
Fix single-step in native thread

If we attempt to single-step in a thread that is not running Java
code, there is no current method on the stack. So we need to check
for null before trying to decode debug info.

Bug: 21320157

(cherry picked from commit 52f5f93873ec244320e05b033243c5c7a3ae40e2)

Change-Id: I961108071dd58a23f6327370b00c35a4cabe0aa7
runtime/debugger.cc