This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Breakpoints not working in C code, only in assembly?

I am running some example program in ARM Development Studio using FVP (fixed virtual platforms) simulator for A53. 

All is OK, I can run the app.

However, the problem is the breakpoints: they don't work in C code, the work only in .S files assembly. 

What could be the problem? 

Model parameters are -C bp.secure_memory=false -C cache_state_modelled=0. 

Parents
  • Hi Stephen, 

    What I have done is I made a new project in ADStudio, than I added a folder with /src and /asm files from the example you mention, and as a last step I added another folder with a bunch of my C source files. It all compiles, builds and runs nicely. 

    I put a few breakpoints in startup.S, and they all work. Also I placed a few breakpoints into GIC*.c and they all work. 

    However, breakpoints in main.c don't work. Main.c is still in the /src dir as GIC files are. So it's not even my own folder. 

    Also, none of the breakpoints work in my own source. 

    What could I have done to cause this strange behavior? I modified main.c, added some lines, however, nothing suspicious. It builds and runs nicely!

Reply
  • Hi Stephen, 

    What I have done is I made a new project in ADStudio, than I added a folder with /src and /asm files from the example you mention, and as a last step I added another folder with a bunch of my C source files. It all compiles, builds and runs nicely. 

    I put a few breakpoints in startup.S, and they all work. Also I placed a few breakpoints into GIC*.c and they all work. 

    However, breakpoints in main.c don't work. Main.c is still in the /src dir as GIC files are. So it's not even my own folder. 

    Also, none of the breakpoints work in my own source. 

    What could I have done to cause this strange behavior? I modified main.c, added some lines, however, nothing suspicious. It builds and runs nicely!

Children
No data