avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] structs not displayed correctly in AVR Studio watch


From: Mossbrucker, Joerg
Subject: [avr-gcc-list] structs not displayed correctly in AVR Studio watch
Date: Wed, 17 Mar 2004 17:01:43 -0600

Hi everyone,
 
it seems that AVR studio (4.08) does not
display correctly the memory location of
struct members, if the members themselves are
arrays and and array of the struct is declared.
 
Look at the following (short) snippet.
 
typedef struct {
uint8_t a;
uint16_t b;
uint8_t c[10];
} test;
 
int main(void)
{
 test d[3];
 int e[5];
 
 e[2]=3;
 d[2].a=2;
 d[1].a=4;
 PORTB=e[2];
 PORTB=d[2].a;
 PORTB=d[1].a;
}
 
The compiler outputs correct code, however after converting
it into extended coff format using the newest version of
obcopy, the addresses in the debugger watch of Studio
are not correct.
Is this a bug in Studio or a bug in obcopy?
 
As always I am using the latest distribution of gcc and obcopy and studio.
 
Best regards and greetings to all.
 
Joerg Mossbrucker
EECS/MSOE 
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list


reply via email to

[Prev in Thread] Current Thread [Next in Thread]