Fri Mar 24 06:11:05 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).
+
* gdb.base/a1-selftest.exp: Don't check for # followed by a digit
somewhere between `read' and `main.c'. I'm pretty sure the
pattern ".*#\[0-9\].*" was slowing down pattern matching a lot,
set GDBFLAGS "-nx"
}
-# set the prompt if it doesn't exist
+# The variable prompt is a regexp which matches the gdb prompt. Set it if it
+# is not already set.
global prompt
if ![info exists prompt] then {
- set prompt "\[(\]gdb\[)\]"
+ set prompt "\\(gdb\\)"
}
global usestubs
global GDBFLAGS
if {[which $GDB] != 0} then {
set tmp [exec echo "q" | $GDB -nw $GDBFLAGS]
- regexp " \[0-9\.\]+" $tmp version
+ regexp " \[0-9.\]+" $tmp version
clone_output "[which $GDB] version$version -nw $GDBFLAGS \n"
} else {
warning "$GDB does not exist"
send "\n"
perror "Window too small."
}
- -re "\[(\]+y or n\[)\]+ " {
+ -re "\\(y or n\\) " {
send "n\n"
perror "Got interactive prompt."
}