diff options
author | David Srbecky <dsrbecky@google.com> | 2015-12-09 14:09:59 +0000 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2015-12-23 13:19:16 +0000 |
commit | 0cf4493166ff28518c8eafa2d0463f6e817cce75 (patch) | |
tree | 6d207db3fb655bbd692f2b01fa963c603619bd0e /compiler/optimizing/code_generator_arm.cc | |
parent | d674bf7ba2a209790cea8ef8d935480ef515c9e1 (diff) |
Generate more stack maps during native debugging.
Generate extra stack map at the start of each java statement.
The stack maps are later translated to DWARF which allows
LLDB to set breakpoints and view local variables.
Change-Id: If00ab875513308e4a1399d1e12e0fe8934a6f0c3
Diffstat (limited to 'compiler/optimizing/code_generator_arm.cc')
-rw-r--r-- | compiler/optimizing/code_generator_arm.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/optimizing/code_generator_arm.cc b/compiler/optimizing/code_generator_arm.cc index 07cc059983..58feb67a58 100644 --- a/compiler/optimizing/code_generator_arm.cc +++ b/compiler/optimizing/code_generator_arm.cc @@ -1618,6 +1618,14 @@ void InstructionCodeGeneratorARM::VisitDeoptimize(HDeoptimize* deoptimize) { /* false_target */ nullptr); } +void LocationsBuilderARM::VisitNativeDebugInfo(HNativeDebugInfo* info) { + new (GetGraph()->GetArena()) LocationSummary(info); +} + +void InstructionCodeGeneratorARM::VisitNativeDebugInfo(HNativeDebugInfo* info) { + codegen_->RecordPcInfo(info, info->GetDexPc()); +} + void LocationsBuilderARM::HandleCondition(HCondition* cond) { LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(cond, LocationSummary::kNoCall); |