Another question regarding this subject (using Keil MDK as a toolchain).
Setup: SL6087 module on development board
Dev Studio Build Version 2.1.1.201201180944-R8656
SL Module FW 7.47
I have some problems during GDB session. My test project contains following files:
src\generated.c
src\hello_world.c
src\SubFolderTest\SecondFile.c
src\SubFolderTest\SecondFile.h (marked as “Exclude resource from build”)
Compile/link Debug project and then Debug As Open AT Target application.
After I pause debug session I am able to place breakpoints inside hello_world.c file and debug as expected (step, continue,…). Problem is when I try to place breakpoint inside SecondFile.c. GDB says "No line 9 in file “…\src\SubFolderTest\SecondFile.c”. I can manually place breakpoint on that place but with following command: break “…\src\SubFolderTest/SecondFile.c”:9. Notice “/” before SecondFile.c.
Other observations:
- When debugging and step from hello_world.c into function located in SecondFile.c everything works (SecondFile.c is being open and I can continue to stepping inside it but placing breakpoints directly in SecondFile.c still doesn’t work).
- Same test with EABI GCC toolchain works.
- When move SecondFile.h to inc\SecondFile.h, Refresh project, recompile and retry debugging then I am able to place breakpoints in both .c files (Keil toolchain).
- GDB console shows following lines after starting debug session:
warning: Loadable segment “APP_DATA” outside of ELF segments
warning: Loadable segment “APP_BSS” outside of ELF segments
warning: Loadable segment “APP_UNINIT” outside of ELF segments
Can’t send signals to this remote system. SIGEMT not sent.
warning: RMT ERROR : failed to get remote thread list.
Does anyone have a suggestion what can be source of problem based on this “blurry” info that I gave?