File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed
plugins/stack_render_layer Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -40,17 +40,22 @@ class StackRenderLayer: public RenderLayer
40
40
continue ;
41
41
}
42
42
43
- // Grab stack offset value from function
44
- auto stackOffset = block->GetFunction ()->GetRegisterValueAtInstruction (
45
- block->GetArchitecture (),
46
- line.addr ,
47
- block->GetArchitecture ()->GetStackPointerRegister ()
48
- );
49
- auto stackOffsetAfter = block->GetFunction ()->GetRegisterValueAfterInstruction (
50
- block->GetArchitecture (),
51
- line.addr ,
52
- block->GetArchitecture ()->GetStackPointerRegister ()
53
- );
43
+ RegisterValue stackOffset;
44
+ RegisterValue stackOffsetAfter;
45
+ if (block->GetFunction ()->GetMediumLevelILIfAvailable ())
46
+ {
47
+ // Grab stack offset value from function
48
+ stackOffset = block->GetFunction ()->GetRegisterValueAtInstruction (
49
+ block->GetArchitecture (),
50
+ line.addr ,
51
+ block->GetArchitecture ()->GetStackPointerRegister ()
52
+ );
53
+ stackOffsetAfter = block->GetFunction ()->GetRegisterValueAfterInstruction (
54
+ block->GetArchitecture (),
55
+ line.addr ,
56
+ block->GetArchitecture ()->GetStackPointerRegister ()
57
+ );
58
+ }
54
59
if (stackOffset.state == StackFrameOffset)
55
60
{
56
61
// Stack pointer is resolved to an offset: show the offset
You can’t perform that action at this time.
0 commit comments