diff --git a/bochs/bx_debug/dbg_main.cc b/bochs/bx_debug/dbg_main.cc index 527623b7d..314401483 100644 --- a/bochs/bx_debug/dbg_main.cc +++ b/bochs/bx_debug/dbg_main.cc @@ -1786,7 +1786,7 @@ void bx_dbg_unwatch(bx_phy_address address) if (read_watchpoint[i].addr == address) { dbg_printf("read watchpoint at 0x" FMT_PHY_ADDRX " removed\n", address); // found watchpoint, delete it by shifting remaining entries left - for (unsigned j=i; j<(num_read_watchpoints-1); j++) { + for (int j=i; j<(int)(num_read_watchpoints-1); j++) { read_watchpoint[j] = read_watchpoint[j+1]; } num_read_watchpoints--; @@ -1798,7 +1798,7 @@ void bx_dbg_unwatch(bx_phy_address address) if (write_watchpoint[i].addr == address) { dbg_printf("write watchpoint at 0x" FMT_PHY_ADDRX " removed\n", address); // found watchpoint, delete it by shifting remaining entries left - for (unsigned j=i; j<(num_write_watchpoints-1); j++) { + for (int j=i; j<(int)(num_write_watchpoints-1); j++) { write_watchpoint[j] = write_watchpoint[j+1]; } num_write_watchpoints--; @@ -2231,10 +2231,10 @@ bx_bool bx_dbg_del_pbreak(unsigned handle) { #if (BX_DBG_MAX_PHY_BPOINTS > 0) // see if breakpoint is a physical breakpoint - for (unsigned i=0; i 0) // see if breakpoint is a linear breakpoint - for (unsigned i=0; i 0) // see if breakpoint is a virtual breakpoint - for (unsigned i=0; i