Add framework for gdb tests, and one test.

Also has rr bind with REUSEADDR, since the test script needs this.