Well this Thread seems to interest many visitors here, but none of you had an idea.. So I had to figure it out by my own. My Programm is compiled with -Wall so I get some warnings while compiling. But regardless the warnings I had a running elf-file and this could be used for debugging - nomally. But it seems that the C::B debugger only starts after compilation, if there are of course no errors and warnings! I was able to debug my code after compilation with option -w what gives me no warning.
Can someone confirm that? Is it meaningful to suppress debuging of code that throws warnings?
However I can not debug, because C::B is using other directories than my compiler. The compiler uses relative paths to set symbolnames and so on.. But C::B uses the full path to set a breakpoint. The result is this message from GDB:
break "C:/Dokumente und Einstellungen/Administrator/Eigene Dateien/Elektronik/ARMProjects/ARM Roboter/src/main.c:140"
No source file named C:/Dokumente und Einstellungen/Administrator/Eigene Dateien/Elektronik/ARMProjects/ARM Roboter/src/main.c.
Breakpoint 1 ("C:/Dokumente und Einstellungen/Administrator/Eigene Dateien/Elektronik/ARMProjects/ARM Roboter/src/main.c:140) pending.
GDB expects somethng like "src/main.c". Maybe this could also be a problem caused by the spaces in the directory names, I will have to check this.