bool type is unrecognised using elf parser in 4.11.406 SP2

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

When I debug the following code compiled with WinAVR 20050214 I cannot watch variables of type bool. A "unknown type" error is shown.

I could use char instead of bool except that using bool generates slightly more efficient code and I'd like it to be watchable.

Can anyone help ? (Hopefully someone from the Atmel dev team will sympathise and include support in the next release)

//Boolean Test Code

#include 

bool bMyFlag;
char A_Global_char;

void main (void)
{
if (bMyFlag)
	A_Global_char = 0;
}

Nigel Winterbottom

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

Thanks for spotting this error.
I have solved the problem in the elf/dwarf parser and the fix will be included in the next AVR Studio release.

Torleif Sandnes
Atmel AVR Software Team