| 70 | } |
| 71 | |
| 72 | bool DisassemblyView::fromJson(const JsonValueWrapper& json) |
| 73 | { |
| 74 | if (!DebuggerView::fromJson(json)) |
| 75 | return false; |
| 76 | |
| 77 | auto start_address = json.value().FindMember("startAddress"); |
| 78 | if (start_address != json.value().MemberEnd() && start_address->value.IsUint()) |
| 79 | m_visibleStart = start_address->value.GetUint() & ~3; |
| 80 | |
| 81 | auto go_to_pc_on_pause = json.value().FindMember("goToPCOnPause"); |
| 82 | if (go_to_pc_on_pause != json.value().MemberEnd() && go_to_pc_on_pause->value.IsBool()) |
| 83 | m_goToProgramCounterOnPause = go_to_pc_on_pause->value.GetBool(); |
| 84 | |
| 85 | auto show_instruction_bytes = json.value().FindMember("showInstructionBytes"); |
| 86 | if (show_instruction_bytes != json.value().MemberEnd() && show_instruction_bytes->value.IsBool()) |
| 87 | m_showInstructionBytes = show_instruction_bytes->value.GetBool(); |
| 88 | |
| 89 | update(); |
| 90 | |
| 91 | return true; |
| 92 | } |
| 93 | |
| 94 | void DisassemblyView::contextCopyAddress() |
| 95 | { |
nothing calls this directly
no test coverage detected