|
Hello, I've got a problem I've sunk about 9 hours into solving and haven't gotten anywhere, so thought the smart people here might be able to help me.
I've been working a project for many months now, no problem with debugger. All of a sudden yesterday, when I went to debug (after stepping through a few instructions) I get the following error: "Dwarf Error: Cannot find DIE at 0x848 referenced from DIE at 0x631 [in module {project path}\main.out]". What's really weird is I can arbitrarily remove a chunk of code, and then I can debug just fine, or get a different error. For instance, sometimes the debugger will work fine in all code modules except for main.c, where I can't even set breakpoints. Other times, arm-elf-gdb.exe just crashes as soon as I try to debug. Any yet other times, I get a message box as soon as the debugger starts saying "Error stopping at main. Reason: Target request failed: No symbol table is loaded. Use the "file" command.. Continue?". Which error I get depends on how many lines of code i comment out. And as mentioned, it's totally arbitrary code that I comment out - from any module.
Is it possible that I'm hitting some sort of code size limitation that the debugger or linker (when producing main.out) may have? My binary file that i download to flash is 61372 bytes in size, and I'm running on a AT91SAM7X512. Also, programming the device and running the code works just fine - only have these problems with the debugger.
Any ideas???
|