@@ -703,13 +703,10 @@ u_addr dw 0,0,0 ;address for last U command; must follow d_addr
703703if USEHWBP
704704;--- bits in bType:
705705;--- 0-3: type
706- ;--- 5: 1=bp is temp
707- ;--- 6: 1=bp is active
708- ;--- 7: 1=bp is used
709706BP_CODE equ 0h
710- BP_TEMP equ 20h
711- BP_ACTIVE equ 40h
712- BP_USED equ 80h
707+ BP_TEMP equ 20h ;1=bp is temporary
708+ BP_ACTIVE equ 40h ;1=bp has been set
709+ BP_USED equ 80h ;1=used,0=free
713710BP_ACTIVEBIT equ 6
714711
715712HWBPSTRUCT struct
@@ -7948,9 +7945,9 @@ WPENABLE equ 1 ;local wp enable
79487945;--- DR7 (debug control register):
79497946;--- bit 0-7: L0,G0 - L3,G3
79507947;--- bit 8-9: LE,GE
7951- ;--- type ( optional 2. argument ) will be copied to bits 16-19 (RW0,LEN0 )
7952- ;--- bit 16-17: type (0=exec, 1=write, 2=I/O [if CR4.DE=1], 3=read or write)
7953- ;--- bit 18-19: len (0=1 byte, 1=2 byte, 2=8 byte, 3=4 byte )
7948+ ;--- type ( optional 2. argument ) will be copied to bits 16-31 (RWx,LENx )
7949+ ;--- bp0 bit 16-17: type (0=exec, 1=write, 2=I/O [if CR4.DE=1], 3=read or write)
7950+ ;--- bp0 bit 18-19: len (0=1 byte, 1=2 byte, 2=8 byte, 3=4 byte )
79547951
79557952;--- map (hard) breakpoints to debug registers
79567953;--- entry will be patched to NOP NOP if hw bp enabled!
@@ -7989,8 +7986,8 @@ skipbp:
79897986 inc cx
79907987 cmp cl , MAXHWBP
79917988 jnz nextbp
7992- ;--- set resume flag generally - another debugger might have set a HW bp, and without
7993- ;--- RF=1 we would be stuck...
7989+ ;--- set resume flag generally - another debugger
7990+ ;--- might have set a HW bp, and without RF=1 we would be stuck...
79947991 or byte ptr [ regs.rFL + 2 ], 1
79957992 ret
79967993error:
@@ -8707,7 +8704,7 @@ nextbp:
87078704 lodsd
87088705 xchg edx , eax
87098706 lodsb
8710- @dprintf "bp: cx=%X, edx=%lX, ax =%X" , cx , edx , ax
8707+ @dprintf "bp: cx=%X, edx=%lX, al =%X" , cx , edx , ax
87118708 test al , BP_USED
87128709 jz skipbp
87138710 mov di , offset line_out
@@ -10985,7 +10982,11 @@ stdout endp
1098510982ifdef _DEBUG
1098610983 pushcontext cpu
1098710984 . 386
10985+ if RING0 and V86M
10986+ include <DPRINTFR. INC >
10987+ else
1098810988 include <DPRINTF. INC >
10989+ endif
1098910990 popcontext cpu
1099010991endif
1099110992
0 commit comments