debugger/List - make sure end > start

This commit is contained in:
Kelvin Sherlock 2015-02-06 19:56:57 -05:00
parent 5bab4d85eb
commit d0d1e84162

View File

@ -643,7 +643,7 @@ void List(uint32_t pc, int count)
void List(uint32_t pc, uint32_t endpc) void List(uint32_t pc, uint32_t endpc)
{ {
if (endpc < pc) return; if ((int32_t)endpc < (int32_t)pc) return;
if (pc & 0x01) if (pc & 0x01)
{ {
@ -864,7 +864,7 @@ void Break(int32_t address)
remove = true; remove = true;
} }
// what was I thinking? only allow 24-bit addresses? // 24-bit address only.
if ((address & 0xff000000) == 0) if ((address & 0xff000000) == 0)
{ {
if (remove) brkMap.remove(address); if (remove) brkMap.remove(address);