🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #187

TRAP Exception Info

#187
From: Carlos Rimola-Sarti car
Date: Fri, 31 Jul 1992 16:50
25 lines
1649 bytes
Can anyone tell me if there is a way for an OS/2 process to get the 
contents of registers at the time of a TRAP exception?  Alternatively,
can OS/2 log this information somewhere?

We have a box that runs OS/2 with AUTOFAIL=YES which means that when
a TRAP (e.g. TRAP D) takes place the usual OS/2 screen showing registers
at the time of the failure is not displayed.  Moreover, this box runs
without a a keyboard or console and if there is an error, we simply
restart the required processes.  However, I would like to be able to
record the registers at the time of a failure so that we can later 
debug the problem (in that rare case :-). 

BTW, I do have an exit handler which records the fact that a TRAP took
place but it needs to record regs to provide additional debug info.

We are running under 1.3 but plan to move to 2.0 in the next couple of
months.

Thanks in advance for any info.

+---------------------------------------+-----------------------------------+
| Carlos Rimola-Sarti                   |         email: rimola@csisdn.com  |
| Connective Strategies Inc.            |                      car@btr.com  |
| ISDN PRI Connectivity Group           |         phone:      415-903-2585  |
+---------------------------------------+-----------------------------------+
Technical Details
Message-ID: <7598@public.BTR.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!mips!mips!public!car

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!mips!mips!public!car
From: car@public.BTR.COM (Carlos Rimola-Sarti  car@btr.com)
Newsgroups: comp.os.os2.programmer
Subject: TRAP Exception Info
Message-ID: <7598@public.BTR.COM>
Date: 31 Jul 92 16:50:22 GMT
Organization: Connective Strategies, Inc. (CSI).  Mountain View, California
Lines: 25