Add support for trace traps by returning from them just as for breakpoint

traps rather than halting.  Ideally, we should avoid printing the
'BTX halted' message for debug register dumps.
This commit is contained in:
John Baldwin 2001-11-03 21:42:25 +00:00
parent 25895accd8
commit 5eef06c222
2 changed files with 10 additions and 2 deletions

View File

@ -408,7 +408,11 @@ except.2: push $SEL_SDATA # Set up
popl %ds # saved
cmpb $0x3,(%esp,1) # Breakpoint?
je except.3 # Yes
jmp exit # Exit
cmpb $0x1,(%esp,1) # Debug?
jne except.2a # No
testl $0x100,0x10(%esp,1) # Trap flag set?
jnz except.3 # Yes
except.2a: jmp exit # Exit
except.3: leal 0x8(%esp,1),%esp # Discard err, int no
iret # From interrupt
#

View File

@ -408,7 +408,11 @@ except.2: push $SEL_SDATA # Set up
popl %ds # saved
cmpb $0x3,(%esp,1) # Breakpoint?
je except.3 # Yes
jmp exit # Exit
cmpb $0x1,(%esp,1) # Debug?
jne except.2a # No
testl $0x100,0x10(%esp,1) # Trap flag set?
jnz except.3 # Yes
except.2a: jmp exit # Exit
except.3: leal 0x8(%esp,1),%esp # Discard err, int no
iret # From interrupt
#