Allow gdb port to specified explicitly

(To make writing tests easier, mostly.)  Mechanical, -> auto-merge.