From 32f00494089792c65680ad1e67226131a58bbbe7 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 25 Sep 2017 15:53:20 +0000 Subject: [PATCH] Add trivial speed up to debugger. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4053 --- src/debug/debug.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index d7320bd7..b6cbc61b 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -447,6 +447,9 @@ void CBreakpoint::ActivateBreakpointsExceptAt(PhysPt adr) bool CBreakpoint::CheckBreakpoint(Bitu seg, Bitu off) // Checks if breakpoint is valid and should stop execution { + // Quick exit if there are no breakpoints + if (BPoints.size() == 0) return false; + // Search matching breakpoint std::list::iterator i; CBreakpoint* bp;