From de72190344f9dcb4d8c2e8a0e65a790e90c8fcee Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 7 Feb 2021 17:06:52 -0800 Subject: [PATCH] Debugger: Update status on scroll down. And include the start and end of the range. --- Windows/Debugger/CtrlMemView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Windows/Debugger/CtrlMemView.cpp b/Windows/Debugger/CtrlMemView.cpp index fbb1478ede..5b0e4400b8 100644 --- a/Windows/Debugger/CtrlMemView.cpp +++ b/Windows/Debugger/CtrlMemView.cpp @@ -562,7 +562,7 @@ void CtrlMemView::updateStatusBarText() { snprintf(text, sizeof(text), "%08X", curAddress); // There should only be one. for (MemBlockInfo info : memRangeInfo) { - snprintf(text, sizeof(text), "%08X - %s (at PC %08X / %lld ticks)", curAddress, info.tag.c_str(), info.pc, info.ticks); + snprintf(text, sizeof(text), "%08X - %s %08X-%08X (at PC %08X / %lld ticks)", curAddress, info.tag.c_str(), info.start, info.start + info.size, info.pc, info.ticks); } SendMessage(GetParent(wnd), WM_DEB_SETSTATUSBARTEXT, 0, (LPARAM)text); @@ -634,6 +634,7 @@ void CtrlMemView::scrollWindow(int lines) { windowStart += lines*rowSize; curAddress += lines*rowSize; + updateStatusBarText(); redraw(); }