From 6a51e8a1c96dac43c48f59ff9e96245a21a6d378 Mon Sep 17 00:00:00 2001 From: joevt Date: Fri, 28 Jul 2023 15:09:22 -0700 Subject: [PATCH] debugger: regs command needs to reset setfill. So printenv will fill with spaces after regs. --- debugger/debugger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debugger/debugger.cpp b/debugger/debugger.cpp index 39098f4..f613db6 100644 --- a/debugger/debugger.cpp +++ b/debugger/debugger.cpp @@ -352,7 +352,7 @@ static void print_gprs() { reg_name = "R" + to_string(i); cout << right << std::setw(3) << setfill(' ') << reg_name << " : " << - setw(8) << setfill('0') << right << uppercase << hex << get_reg(reg_name); + setw(8) << setfill('0') << right << uppercase << hex << get_reg(reg_name) << setfill(' '); if (i & 1) { cout << endl; @@ -365,7 +365,7 @@ static void print_gprs() { for (auto &spr : sprs) { cout << right << std::setw(3) << setfill(' ') << spr << " : " << - setw(8) << setfill('0') << uppercase << hex << get_reg(spr); + setw(8) << setfill('0') << uppercase << hex << get_reg(spr) << setfill(' '); if (i & 1) { cout << endl;