On 28 Aug 2019 21:15, William Tambe wrote: > What is the best way to check whether the "sim" is running standalone > or by GDB ? this is the point of SIM_OPEN_KIND. it is set to SIM_OPEN_DEBUG when gdb (a debugger) is used, and SIM_OPEN_STANDALONE when it's not. -mike