Rollup patch is attached, incorporating all feedback so far (I
think!). As usual, you should be able to use interdiff to view the
changes. Let me know if that doesn't work and I can make git spit it
out.
Unfortunately the tests are randomly failing on me. I'm not sure
what's going on, but it looks like we're not always waiting long
enough after runto_main, somehow.
The relevant expect code (in gdb.base/skip.exp) is:
if ![runto_main] { fail "skip tests suppressed" }
send_gdb "step\n"
# XXX This gdb_test sometimes fails, due to an apparent race.
gdb_test "bt" "\\s*\\#0\\s+main.*" "step after all ignored"