[ABANDONED] Ozone can't find source file when clicking on it in Disassembly Window

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [ABANDONED] Ozone can't find source file when clicking on it in Disassembly Window

    Hi

    For some reason Ozone doesn't find source file when clicking on it in Disassembly Window.

    Background:

    Simplified project structure looks like this:

    Source Code

    1. └───root
    2. ├───mylib
    3. │ ├───cmake_build_dir
    4. │ └───src
    5. │ aaa.c
    6. │ bbb.c
    7. └───project
    8. ├───cmake_build_dir
    9. │ project_ozone.jdebug
    10. └───src
    11. └───main.c
    Display All

    project is linking mylib.a static library.

    Some time ago mylib.a library had absolute paths for debug symbols but it was inconvenient. To debug library we had to recompile it locally - otherwise absolute paths inside library didn't match (every developer has different absolute path to root). That's why we decided to use relative paths in mylib.a library.

    We used following commands in CMakeLists.txt to make paths inside mylib.a relative to root directory.

    Source Code

    1. add_compile_options(-ffile-prefix-map=${PATH_TO_ROOT}=.) # PATH_TO_ROOT is passed to CMAKE automatically, so it works for every developer/environment.
    2. add_compile_options(-ffile-prefix-map=${CMAKE_CURRENT_BINARY_DIR}=.) # We had to convert paths to build directory as well. For some reason Ozone was concatenating path to build directory with path to the source file itself.

    We added Project.SetRootPath command in project_ozone.jdebug file so that it points to root directory:

    Source Code

    1. Project.SetRootPath("../..");

    Status:

    What is working:
    • When using project_ozone.jdebug all source files which belong to mylib library (aaa.c, bbb.c etc) are corectly resolved - according to message in Console window
    • All source file are also correctly listed in Source Files Window
    • When program hits breakpoint inside mylib source file, Ozone opens this source files automatically
    • When program is halted and it happen to execute source code from mylib (e.g. aaa.c), Ozone opens aaa.c source file automatically


    What is NOT working:
    • When clicking in Disassembly Window, Ozone cannot open source file which belongs to mylib. Following message is printed in console:

    Source Code

    1. Show.Source ("0xABCD"): File not found.: ./mylib/src/aaa.c


    Does someone know how to fix problem with Disassembly Window?

    Thanks in advance
    Przemek
  • Hi Przemek,

    such an issue is not know to us. Could you please file a ticket in our ticket system? Please note that for further analysis a reproducer is required which allows us to reproduce the issue locally.

    Best regards
    -- AlexD
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.