Hi all,

gdb 7.0 from the gcc 4.4.2 distribution seems to think that TA0CTL is 1 byte long when printing the value. I built the following code as a test and verified that it does actually do the right thing, but "print /x TA0CTL" only gives the lower byte, which is always zero in this case.

I'm compiling with -g to include debugging info.
(And note that TACTL is #defined to be TA0CTL, which should be defined as "volatile unsigned int TA0CTL asm("0x160")")

Any ideas would be most appreciated!

Tyler

---------- code

#include <io.h>

int
main()
{
   // Stop watchdog timer to prevent time out reset
   WDTCTL = WDTPW + WDTHOLD;

   TACTL = TASSEL1;

   while (1)
   {
   }
}


Reply via email to