How to enable RTOS features when debugging projects without RTOS

Sysprogs forums Forums VisualGDB How to enable RTOS features when debugging projects without RTOS

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36040
    wtywtykk
    Participant

    Hi,

    I have 2 projects using CMake.

    The first one is App. RTOS is in this project. This project exposes some functions by a table at fixed address. It also creates some private tasks.

    The second one is Payload. App calls a function in Payload to do initialization, and Payload uses functions in App to do things like creating tasks.

    When debugging Payload, though there’s actually RTOS running, I can’t see tasks or “FreeRTOS” tab in live watch. I tried to use gdb command “add-symbol-file build/VisualGDB/Debug/App/App 0x0” to load the symbol. After that I can see call stack back to RTOS layer. But still can’t see other tasks or “FreeRTOS” tab.

    How to enable those features?

     

    Regards,

    Tianyi

    #36042
    support
    Keymaster

    Hi,

    VisualGDB looks for RTOS-specific symbols (tables of all tasks, etc) in the debugged image. As long as they are present, it automatically loads the RTOS plugin regardless of how the image was built.

    Splitting the code into 2 images where RTOS and the actual payload is rather uncommon, so VisualGDB does not support this automatically. You can try using some external tool to merge them back into one ELF file and debug that one, but it could be tricky.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.