Files
nethack/sys/vms
nethack.rankin 17ba5651fa PANICTRACE on VMS (trunk only)
The preliminary implementation of PANICTRACE on VMS had a "Fixme"
that this fixes, and a "TODO" that this makes moot, but the main reason
for this patch is that vmsmisc.c had been changed to call vms_define(),
which resides in vmsunix.c.  Since vmsmisc.obj is linked into progarms
in util/ and vmsunix.obj isn't, enabling PANICTRACE caused linking
problems for those.  This moves the code that wants to call vms_define()
into vmsunix.c (despite the fact that it's not even vaguely related to
Unix emulation), so that it only matters to nethack and doesn't impact
the utility programs anymore.

     This uses a VMS facility called LIB$INITIALIZE to call code before
main() starts.  It's rather messy--at least when written in something
other than assembler or Bliss--and shouldn't be needed for nethack,
but I couldn't figure out how to trap the condition signalled by
lib$signal(SS$_DEBUG) when the debugger isn't available to do so, so I
needed a way to make issuing that signal be conditional upon debugger
availability.  One of the arguments passed to LIB$INITIALIZE-invoked
routines contains information that makes if feasible to deduce whether
the debugger is available.

     Even when PANICTRACE is disabled, that's useful for handling abort
due to panic while in running in wizard mode.
2011-09-01 01:47:00 +00:00
..
2006-09-23 04:45:56 +00:00
2009-05-06 10:55:43 +00:00
2011-05-23 03:27:10 +00:00
2011-05-23 03:27:10 +00:00
2011-09-01 01:47:00 +00:00
2011-05-23 03:27:10 +00:00
2011-05-23 03:27:10 +00:00
2002-01-05 21:06:00 +00:00
2009-05-06 10:55:43 +00:00
2002-01-05 21:06:00 +00:00
2011-09-01 01:47:00 +00:00
2009-05-06 10:55:43 +00:00
2009-05-06 10:55:43 +00:00
2011-04-23 01:51:01 +00:00
2011-09-01 01:47:00 +00:00
2011-04-13 01:48:13 +00:00
2011-09-01 01:47:00 +00:00