[SOLVED] GDB-Server semihosting file I/O on GDB client

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

  • [SOLVED] GDB-Server semihosting file I/O on GDB client

    Posting here because I can't find a clear answer nor am able to get this working how I would like.

    Is it possible for semihosted file I/O to work with the filesystem on the GDB client system rather than that which the GDB server is running?
    I am running the J-Link GDB server on a remote machine to which a target is attached and a GDB client on another machine. I'm able to get terminal I/O fine both in the GDB client and via a telnet session, but file I/O seems to be limited to the system on which the server is running.
    I'm wondering if this is how semihosting file I/O is implemented or whether it is possible to get file I/O working with the GDB client machine?

    Thanks.
  • I do not see why it should not be possible.

    Having GDB Server to do the semihosting operation means that everything is relative to the machine GDB Server is running on.

    Using semihosting I/O client mode 2 will have all semihosting operations being done by GDB, so everything happens on the machine GDB is running on.

    wiki.segger.com/J-Link_GDB_Server#semihosting_IOClient
    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.