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

Source code level debugging doesn't work

Hi,

I want to proced source code level debugging with my own library (*.libc file). It doesn't work when library project and aplication project are placed together into workspace. There are no problem when I open standalone aplication project. What is the problem? Any suggestion?

Best regards,
JN

  • Jan;
    When you build your project with debugging enabled, the tools place symbols in the the axf or object files. These symbols link the axf code to the source code for viewing at the source level.
    When you build your final hex files or Lib files, these symbols are excluded from your code so there are no reference links back to your source code. I know of no way to include this symbol linkage in your Lib files.
    Bradford

  • Did you build your library with debug information included?

    Maybe I don't fully understand your problem, but I have no problem building a library with Debug information included in the library and then separately build a project that just links to the library yet still have the full capability to source level debug the application AND the library. (You may to actually add the library source code to the project so it knows where it is, but you do not build the library source code in the project. You may need to de-select the included in Target Build option under properties so that it is not rebuilt)

  • You need to tell the debugger where your sources for the library are located with the set src= command. This can be done from the command window or from the ini file.

    The command syntax is:
    set src=<path>

    Franc

  • Hi,

    Let me explain this. I have two projects: A library project, and B aplication project. I'm using binary library file (*.libc) into my aplication project. I put this two project together into one workspace, and when I'm debuging library code througt aplication project it doesn't work. But, when I open plain aplication project, I can proceed library source level debugging with no problems(debug info atached to library, "SET SRC=.." in INI file as DEBUGGER command). Problem is only when I'm trying to use this two projects together in one workspace. Maybe you can chack this by your own? Any idea where is the problem?

    Regards,
    J.N.

  • Jan,

    that is exactly what I'm telling you. Here is an example from the RL-ARM. The SD_File example has included the File System binary library file FS_ARM_L.lib. This library was build as a separate project. You can debug the SD_File example at source level but not the included library.

    However if you tell the debugger where the sources for the library FS_ARM_L.lib are located, then the debugging for the the binary lib file, which is included into the application project will also work. And then instead of single stepping through the library in assembly instructions, it single steps in the library source.

    With set src=<path> command, the debugger additionally searches the specified <path> for the source files.

    Of course this library has to be built with the debug information, othervise this is still not possible.

    Franc