From 4b6fd3c481d6d4513da45259c9fc7389070acdce Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sat, 30 Jul 2005 10:13:24 +0000 Subject: [PATCH] Some messages when dealing with prot mode debug points.(h-a-l-9000) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2256 --- src/debug/debug.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index 57119421..0d4ea81d 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: debug.cpp,v 1.64 2005-07-19 19:45:15 qbix79 Exp $ */ +/* $Id: debug.cpp,v 1.65 2005-07-30 10:13:24 qbix79 Exp $ */ #include #include @@ -537,6 +537,9 @@ void CBreakpoint::ShowList(void) } else if (bp->GetType()==BKPNT_MEMORY) { DEBUG_ShowMsg("%02X. BPMEM %04X:%04X (%02X)\n",nr,bp->GetSegment(),bp->GetOffset(),bp->GetValue()); nr++; + } else if (bp->GetType()==BKPNT_MEMORY_PROT) { + DEBUG_ShowMsg("%02X. BPPM %04X:%08X (%02X)\n",nr,bp->GetSegment(),bp->GetOffset(),bp->GetValue()); + nr++; }; } }; @@ -965,8 +968,11 @@ bool ParseCommand(char* str) Bit16u seg = (Bit16u)GetHexValue(found,found);found++; // skip ":" Bit32u ofs = GetHexValue(found,found); CBreakpoint* bp = CBreakpoint::AddMemBreakpoint(seg,ofs); - if (bp) bp->SetType(BKPNT_MEMORY_PROT); - DEBUG_ShowMsg("DEBUG: Set prot-mode memory breakpoint at %04X:%08X\n",seg,ofs); + if (bp) + { + bp->SetType(BKPNT_MEMORY_PROT); + DEBUG_ShowMsg("DEBUG: Set prot-mode memory breakpoint at %04X:%08X\n",seg,ofs); + } return true; } found = strstr(str,"BPLM ");