Watching data Structures

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was wondering if there is any way that we can see the address resolution of advanced data
structures.
(i.e.. pointers to arrays of structures ).
I find myself writing a lot of extra code to see the contents of my structures.

Thank you

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Dave,

The amount of debug information that is generated for complex data structures varies between object file formats. If the neccessary info is available, complex data should be 'expandable' to any depth in the watch window. Just press the '+' sign next to the variable name in the watch window. If there is no '+' sign, the variable is not a complex one, or the neccessary info to expand it is not present.

Which compiler do you use?

Svenn-Ivar

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using the CodeVisionAVR compiler for my present project. Do you know if this compiler has the depth of debug information required to watch these types of data structures.?

If not... do you know of compilers that do have the ammount of debug information that I need ?

Thank you
Dave

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have heard from another developer that Imagecraft compiler has the same problem.

As a mater of fact I have heard that the UBROF format is the only one that is supported for
watching advanced data structures in the AVR studio and......

That IAR and ATMEL are keeping the specifications for the UBROF format a Secret.

Could this be true ??? I do not believe it.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Dave,

The UBROF object file format is a proprietary IAR format. To get information about the it you have to turn to IAR. Atmel cannot reveal info about it.

You can contact the compiler vendors to find out which information is included in the output format. Support addresses to both Imagecraft and Codevision can be found on their web sites.

Best regards,
Svenn-Ivar

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok now I am relay getting confused.......

1) I assume that the last Post from Svenn-Ivar means that the answer to my first post is that
AVR Studio ONLY supports watching advanced data structures if compiled by an IAR
compiler.

Ok then here is the confusing bit......

If(AVR Studio ONLY supports UBROF) && (only IAR has the specs for UBROF)

Then how can Imagecraft say that they will support this feature soon?

?Dave?

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dave,

You're confused all right. I'm no compiler expert, but:

UBROF is an IAR object format supported by AVR Studio. COFF is another object format, open to all, and supported by AVR Studio and a lot of compiler makers.

COFF supports and works fine with advanced watch structures. It will be displayed by AVR Studio, provided the software (in this case the compiler) that generates the COFF object file includes the necessary variable references. (Without these references, AVR Studio can't determine how the

So Imagecraft does not have to support UBROF in order to support advanced data structures.

Haakon

admin's test signature