From d0d1e841622c07ada89c024e87b26c908431bff5 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Fri, 6 Feb 2015 19:56:57 -0500 Subject: [PATCH] debugger/List - make sure end > start --- bin/debugger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/debugger.cpp b/bin/debugger.cpp index 98e63c8..f94e6cc 100644 --- a/bin/debugger.cpp +++ b/bin/debugger.cpp @@ -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);