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:
parent
25895accd8
commit
5eef06c222
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85990
@ -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
|
||||||
#
|
#
|
||||||
|
@ -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
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user