home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
dumptool.zip
/
SAMPLRPN.ZIP
/
trapxcpt.rpn
< prev
Wrap
Text File
|
1997-01-27
|
939b
|
41 lines
;trapdump by exception number
;Take a dump when a particular exception is raised for the user
;
major=255
hmte=6 ;os2krnl
;
minor=1
opcode=0x55 ;push
object=0xf ;GA Merlin 9.023 ALLSTRICT Kernel
offset=0x46daf ; _XCPTBuildR3DispatcherStack segment:offset
;
push d,0xc0000097 ;<=== intercept exception 0xc0000005.
; ; Change this for other exceptions.
;
push ss
push esp
push w,8 ;stack +8 = exception number
add
push sis
cnvrt sxd ;exception number now a DWORD on rpn stack
sub ;compare
jmp zn,dump
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 eax
;push w,8
;push ss
;push esp
;push w,4
;add
;log mrs