home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
dumptool.zip
/
SAMPLRPN.ZIP
/
trapslot.rpn
< prev
next >
Wrap
Text File
|
1997-01-27
|
934b
|
37 lines
;trapdump by Thread Slot number
;Take a dump when a trap raises an exception for the user in a particular thead slot
;
major=255
hmte=6 ;os2krnl
;
minor=1
opcode=0x55 ;push
object=0xf ;GA Merlin 9.023 ALLSTRICT Kernel
offset=0x46daf ; _XCPTBuildR3DispatcherStack segment:offset
;
push w,0x75 ;Intercept traps in Slot 0x75 (got this from the KDB)
push w,0x150b ;curent TIB selector
push w,0x14 ;Offset of slot no. in TIB
push wis ;slot now a DWORD on rpn stack
sub ;compare
jmp zn,dump ;go dump if slot matches
abort
;
; Note:
;
;
;dump: sysdump ; remove semi-colon to acivate dump
;
;
; the following code dumps the parameters on entry to _XcptbuildR3DispatcherStack
; this is for debugging this trace program. Comment out to activate the dump.
;
dump:
push w,8
push ss
push esp
push w,4
add
log mrs