1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85990
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 popl %ds # saved
cmpb $0x3,(%esp,1) # Breakpoint? cmpb $0x3,(%esp,1) # Breakpoint?
je except.3 # Yes 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 except.3: leal 0x8(%esp,1),%esp # Discard err, int no
iret # From interrupt iret # From interrupt
# #

View File

@ -408,7 +408,11 @@ except.2: push $SEL_SDATA # Set up
popl %ds # saved popl %ds # saved
cmpb $0x3,(%esp,1) # Breakpoint? cmpb $0x3,(%esp,1) # Breakpoint?
je except.3 # Yes 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 except.3: leal 0x8(%esp,1),%esp # Discard err, int no
iret # From interrupt iret # From interrupt
# #