diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-01-04 21:44:33 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-01-04 21:44:54 +0100 |
| commit | 0be476cfafd49ca431dc8c53b67dfee2414b2121 (patch) | |
| tree | cc623f0a4e2a35c04bd35b1655cb50dc04b3b030 /Source | |
| parent | eec0018b734a9788ac14e11a362b6b8d1b8e3188 (diff) | |
Core/CodeTrace: Take address from given instruction in GetInstructionAttributes().
In all instance this method is called, the instruction comes from SaveCurrentInstruction(), which already sets the address to the PC.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/Debugger/CodeTrace.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/Core/Debugger/CodeTrace.cpp b/Source/Core/Core/Debugger/CodeTrace.cpp index 1329b82c7c..d334e49cc3 100644 --- a/Source/Core/Core/Debugger/CodeTrace.cpp +++ b/Source/Core/Core/Debugger/CodeTrace.cpp @@ -73,13 +73,11 @@ void CodeTrace::SetRegTracked(const std::string& reg) InstructionAttributes CodeTrace::GetInstructionAttributes(const TraceOutput& instruction) const { - auto& system = Core::System::GetInstance(); - // Slower process of breaking down saved instruction. Only used when stepping through code if a // decision has to be made, otherwise used afterwards on a log file. InstructionAttributes tmp_attributes; tmp_attributes.instruction = instruction.instruction; - tmp_attributes.address = system.GetPPCState().pc; + tmp_attributes.address = instruction.address; std::string instr = instruction.instruction; std::smatch match; |
