* lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures.