From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2a4cc9c0c74758fb X-Google-Attributes: gid103376,public From: l107353@cliffy.lfwc.lockheed.com (Garlington KE) Subject: Re: HELP! nested CASE statement Date: 1995/04/20 Message-ID: <3n6jt7$k93@butch.lmsc.lockheed.com>#1/1 X-Deja-AN: 101283299 references: <3n6e5a$iqj@io.innovplace.saskatoon.sk.ca> organization: Lockheed Missiles and Space Co. newsgroups: comp.lang.ada Date: 1995-04-20T00:00:00+00:00 List-Id: Telson Cheung (cheung@SEDSystems.ca) wrote: : With the debugger, we set : Hpa_Group_Status.Last_Commanded_Hpa_Band := Vg_Dtypes.Band_C : while keeping : Hpa_Group_Status.Last_Commanded_Hpa_Path uninitialed (ie. unknown) : when stepping thru these lines of code in the debugger, instead of raising : an Invalid_Path_Id exception, the program actually goes to : when Vg_Dtypes.Path_A => : Execution_Status := Hpa_C_A.Command_Execution_Status; My guess? This is because Hpa_Group_Status.Last_Commanded_Hpa_Path is equal to Vg_Dtypes.Path_A. Every variable has to have _some_ value; this one just happened to be Path_A. I'll go out on this limb a little longer. I will guess that Path_A is probably represented as zero at the machine level. Some debuggers initialize all unitialized varaiables to a known value (like zero). In fact, I recently tracked down a bug in a DEC Ada application involving an unitialized variable, where the application only worked properly while being run under the debugger, using this handy hint. Try having the debugger display the value of Last_Commanded_Hpa_Path just before entering this section of code. : Helps needed. : Please also email response to cheung@sedsystems.ca : Thanks -- -------------------------------------------------------------------- Ken Garlington GarlingtonKE@lfwc.lockheed.com F-22 Computer Resources Lockheed Fort Worth Co. If LFWC or the F-22 program has any opinions, they aren't telling me.