I notice that or1ksim-0.3.0 crashes when it's configured to start the RSP server, as well as load an ELF specified on the command line, and is then connected to by GDB.
or1ksim outputs this: Listening for RSP on port 50001 I then connect with GDB Warning: Failed to accept RSP client ERROR: Cannot bind to RSP socket or1ksim exits
A bit of a debug, a google, and then a quick test, it appears the accept() function is strict about the third argument to it (a pointer to socket address length variable) should be initialised to a positive value.
Adding this just after len is declared appeared to fix the issue.
len= sizeof(socklen_t); // Fix accept() error
Sorry, I forgot to say this is in the rsp_get_client() function in debug/rsp-server.c