------- Additional Comments From dwatkins at tascsystems dot com 2005-02-16 00:04 ------- Regarding this bug and AVRFreaks Forum topic:
http://www.avrfreaks.com/index.php? name=PNphpBB2&file=viewtopic&t=23436&highlight=&sid=e1dbd9f208947a5efc679075b4af f237 in which the debug info for code past the first 64k of program space wraps, overlaying the information at the lower 64k, I may have identified the problem. It appears that using POINTER_SIZE = 16 results in DWARF2_ADDR_SIZE being derived as 2 when it should be 4. This would normally not be an issue except that in code generation the pointers appear to address 64k words (128k bytes), but for debug info the address fields appears to address program space in bytes, thus wrapping for the second 64k when the address field size is 16 bits. I rebuilt GCC with the following change added to gcc/config/avr/avr.h just after the define for POINTER_SIZE... #define DWARF2_ADDR_SIZE 4 GCC rebuilt, and my AVR libraries and project all rebuilt, but at this point, when attempting to load it into AVRStudio4.11, it results in a rather dramtic looking Visual C++ runtime error from AVRStudio.exe. I obviously don't have a fix, but perhaps someone more familiar will recognize what I attempted to do and know what further needs to be done to both resolve the problem and retain interoperability with AS4. Regards, Darcy -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19087