debugger: regs command needs to reset setfill.

So printenv will fill with spaces after regs.
This commit is contained in:
joevt 2023-07-28 15:09:22 -07:00 committed by dingusdev
parent 006a90f681
commit 6a51e8a1c9
1 changed files with 2 additions and 2 deletions

View File

@ -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;