Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29384 Discussions

Extending autoexp.dat for Fortran types

inaylor
Beginner
1,101 Views
Hi,

I'm currently trying to extend autoexp.dat to support some specialised fortran types but I can't get the debugger (VS2008) to recognise them.

It works fine for C++ but is anyone aware of how to do it with fortran (IVF 11.1.054) ?

As an example.

C++ Version: This works

Code:

struct MatrixLine

{float f1, f2, f3, f4; };

Autoexp.dat:

MatrixLine{

preview(#([$c.f1,f],", ",[$c.f2,f],", ",[$c.f3,f],", ",[$c.f4,f]))

children([$c,!])

}


Fortran Version: This doesn't work
Code:

TYPE MatrixLineF

REAL f1

REAL f2

REAL f3

REAL f4

END TYPE

TYPE (MatrixLineF) :: ml

Autoexp.dat:

TYPE(MATRIXLINEF){

preview(#([$c%f1,f],", ",[$c%f2,f],", ",[$c%f3,f],", ",[$c%f4,f]))

children([$c,!])

}


The example has been based on this article
http://thetweaker.wordpress.com/2009/02/26/2d-matrix-watch-introducing-autoexpdat/

The type declaration for the fortran type in the autoexp.dat is based on the type that displays in the debugger. I've tried a few variations - excluding TYPE(), changing case with no success.

Does anyone have any suggestions ?

Ian
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,101 Views
I don't think this will work with Fortran.
0 Kudos
inaylor
Beginner
1,101 Views
That was the conclusion I was coming to but I thought there may beapossibilityof someonehavinga clever way of doing it.
0 Kudos
Steven_L_Intel1
Employee
1,101 Views
I asked our experts here and they say that this is implemented in the C expression evaluator and that Fortran's has no support for this.
0 Kudos
inaylor
Beginner
1,101 Views
Thanks for the confirmation, Steve
0 Kudos
Reply