HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Debugger behaviour on Itanium

 
SOLVED
Go to solution
Chris Barratt
Frequent Advisor

Debugger behaviour on Itanium

I post this merely as a curiousity....

One of our programmers was debugging a Pascal program on IA64 and noticed the following..

In the Pascal code,

Type
Episode_type : char := ‘Y’

DBG> examine episode_type

IMS_SUB_STM_INPATIENT_V2\IMS_SUB_STM_INPATIENT_V2\EPISODE_TYPE: 89


When the same thing is done on Alpha,

DBG> examine episode_type

IMS_SUB_STM_INPATIENT_V2\IMS_SUB_STM_INPATIENT_V2\EPISODE_TYPE: 'Y'


Just wondering why the different behaviour ?

(Obviously, using exam/ascii on Itanium would give the same result as Alpha).

Cheers,
Chris
6 REPLIES
Chris Barratt
Frequent Advisor

Re: Debugger behaviour on Itanium

a couple of corrections...

curiosity

and

Episode_type : char := 'Y';
Dean McGorrill
Valued Contributor

Re: Debugger behaviour on Itanium

hi Chris,
Interesting. the debugger does not appear to recognize the data type for pascal. perhaps some porting oversight.
in dcl...

$ episode_type[0,8]==89
$ show symbol episode_type
EPISODE_TYPE == "Y"
$

It at least has the right value. Dean
John Gillings
Honored Contributor

Re: Debugger behaviour on Itanium

Hi Chris,

Obviously the Alpha behaviour is correct. DEBUG should know the data type and display the data correctly.

Please build a small reproducer (should be trivial) and raise a case with your friendly Customer Support Centre to be passed through to enginnering.

A crucible of informative mistakes
John Reagan
Respected Contributor
Solution

Re: Debugger behaviour on Itanium

Jeff Nelson and I have talked about this on and off for several years now. The problem is that the DWARF CHAR type is very oriented towards C's CHAR type. For those of you keeping score at home, C's CHAR type is basically an integer type.

At present, we don't have a solution.
Chris Barratt
Frequent Advisor

Re: Debugger behaviour on Itanium

Thanks John....good to know it was a known problem and hadn't slipped through the cracks.

When it all comes down to it, it's not a major issue and easily worked around.

Cheers,
Chris
John Reagan
Respected Contributor

Re: Debugger behaviour on Itanium

Well, I find it rather embarassing. We're working on some other debug related bugs at the moment in the compilers. I'll see if I can fold this issue into the mix and take another shot at it.