utzig/lm4tools — pull request #19 by simias (2014-10-11 15:18:39+00:00)
Title: Add SO_REUSEADDR to gdb socket to avoid "address already in use" errors

If the connection to gdb was not closed properly (e.g. gdb crashing) I can't quit and restart lmicdi right away because the bind call fails with "address already in use". I have to wait until the connection timeouts.

Setting SO_REUSEADDR should prevent this from happening.