Skip to content

Commit

Permalink
add float display to membp log
Browse files Browse the repository at this point in the history
  • Loading branch information
JLaferri committed Feb 6, 2024
1 parent 1b4727b commit 13d3ca5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/Core/Common/BreakPoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,10 @@ bool TMemCheck::Action(DebugInterface* debug_interface, u32 iValue, u32 addr, bo
if (Log)
{
auto frame = PowerPC::HostRead_U32(0x804D6CF4);
NOTICE_LOG(MEMMAP, "[%d] MBP %08x (%s) %s%i %0*x at %08x (%s)", frame, pc,
debug_interface->GetDescription(pc).c_str(), write ? "Write" : "Read", size * 8,
size * 2, iValue, addr, debug_interface->GetDescription(addr).c_str());
float fltVal = *reinterpret_cast<float *>(&iValue);
NOTICE_LOG(MEMMAP, "[%d] MBP %08x (%s) %s%i %0*x (%.3f) at %08x (%s)", frame, pc,
debug_interface->GetDescription(pc).c_str(), write ? "Write" : "Read", size * 8, size * 2,
iValue, fltVal, addr, debug_interface->GetDescription(addr).c_str());
Dolphin_Debugger::PrintCallstack(LogTypes::MEMMAP, LogTypes::LOG_LEVELS::LERROR);
}
if (Break)
Expand Down

0 comments on commit 13d3ca5

Please sign in to comment.