This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GDB Agent - are parallel sessions possible?

Hello,

I would like to use the GDB Agent to read/write from/to memory locations while the MCU is running. My hope was that I could establish two parallel sessions with the GDB Agent: A first to issue a "c" command, and a second for "m" and "M" commands. However, a quick experiment suggests that the GDB Agent does not like to kind of (ab)use.

Is there a way to launch the GDB Agent to support parallel sessions, and/or might there be another method to achieve the same objective?

Thanks!

  • Hi,

    Can you check section 3.1 of:
    processors.wiki.ti.com/.../XDS_GDB_Agent

    Hope this helps,
    Rafael
  • Hello Rafael,

    Thank you for the quick reply!

    I am aware of section 3.1, but my use case is different in that I am not trying to connect to _multiple_ target devices via _different_ debuggers.

    Instead, I would like to issue a continue command to the target to start the MCU, and then issue memory read and write commands while the MCU is running. Since the GDB Agent will not respond to the 'c' command until the MCU hits a breakpoint, I was hoping to be able to open a second session with the GDB Agent to the _same_ MCU via the _same_ debugger for issuing the 'm' and 'M' commands. 

    Thanks, Beat.

  • Beat,

    Thanks for sending the additional details; I understand it now. If your device is ARM-based, this could potentially be done via a direct read through the DAP. Unfortunately the memory read/write through the DAP is not supported via the GDB agent. Sorry.

    Regards,
    Rafael