[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::debug

Title:DEBUG
Notice:Updated locations for reporting QARs -- see note 834.1
Moderator:LOWFAT::DIETER
Created:Fri Jan 24 1986
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1868
Total number of notes:8200

1844.0. "%DEBUG-W-INHCHME" by JURA::DUQUESNE (Daniel - Publicit� interdite...) Tue Mar 11 1997 10:37

Hi,

I have a program which generates the following msg only on OVMS Alpha: same program doesn't display
the msg on VAX. I'd like to remove this msg on Alpha.  
Which system service is currently inhibited: how can I know?

%DEBUG-I-EXITSTATUS, is '%DEBUG-W-INHCHME, inhibited CHMExecutive trap, code=000
00000, PC=00000000, PS=000F0003'

OVMS/Alpha V6.2.


Thanks for the help,
Daniel.
T.RTitleUserPersonal
Name
DateLines
1844.1It's probably main()'s return value that's the problem.WTFN::SCALESDespair is appropriate and inevitable.Tue Mar 11 1997 18:4126
.0> I have a program which generates the following msg only on OVMS Alpha: same 
.0> program doesn't display the msg on VAX. 

To start with, the message that you've posted is coming from the debugger, not
from your program, and there's no way to suppress the "%DEBUG-I-EXITSTATUS"
message.  I'm going to presume that you also see the "%DEBUG-W-INHCHME" message
reported by DCL when you run your program without the debugger...

The reason (I'm presuming again) that you are seeing this message is because
when your program terminates, there is some garbage left in R0, garbage which
just happens to match the status code for "INHCHME", with a facility of "DEBUG"
and a severity of "warning".  Presumably, the reason why you don't see anything
on the VAX is because the garbage has a "severity" of "success" (or has the
"inhibit" bit set).

To fix this problem (assuming that my prognostication is correct), all you need
to do is to fix your program's "main" routine to ensure that it returns a
success value in R0 (i.e., as the function's return value), or ensure that it is
a "novalue" or "void" routine....


				Webb


P.S.  I don't normally read this notes conference, I'm just here 'cause I saw
	the cross-post in the RTL conference...