mirror of
https://github.com/ksherlock/mpw.git
synced 2024-12-22 00:29:18 +00:00
debugger/List - make sure end > start
This commit is contained in:
parent
5bab4d85eb
commit
d0d1e84162
@ -643,7 +643,7 @@ void List(uint32_t pc, int count)
|
||||
|
||||
void List(uint32_t pc, uint32_t endpc)
|
||||
{
|
||||
if (endpc < pc) return;
|
||||
if ((int32_t)endpc < (int32_t)pc) return;
|
||||
|
||||
if (pc & 0x01)
|
||||
{
|
||||
@ -864,7 +864,7 @@ void Break(int32_t address)
|
||||
remove = true;
|
||||
}
|
||||
|
||||
// what was I thinking? only allow 24-bit addresses?
|
||||
// 24-bit address only.
|
||||
if ((address & 0xff000000) == 0)
|
||||
{
|
||||
if (remove) brkMap.remove(address);
|
||||
|
Loading…
Reference in New Issue
Block a user