aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2008-03-28 16:32:11 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2008-03-28 16:32:11 +0000
commit79732189eab6d6b62f90de4836693c0590fd5d12 (patch)
treefcc34a57dcea47212951760ac33645993e79db34 /gdb/testsuite/lib
parente741f4d4e4220040c02c8572334c869481f86aa9 (diff)
downloadfsf-binutils-gdb-79732189eab6d6b62f90de4836693c0590fd5d12.zip
fsf-binutils-gdb-79732189eab6d6b62f90de4836693c0590fd5d12.tar.gz
fsf-binutils-gdb-79732189eab6d6b62f90de4836693c0590fd5d12.tar.bz2
2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
Bring mi-support in line with gdb.exp. * lib/mi-support.exp (default_mi_gdb_start): Rename from mi_gdb_start. (mi_gdb_start): New function.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/mi-support.exp12
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index 4941e3a..2fb53e7 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -84,7 +84,7 @@ proc mi_uncatched_gdb_exit {} {
}
#
-# mi_gdb_start [INFERIOR_PTY] -- start gdb running, default procedure
+# default_mi_gdb_start [INFERIOR_PTY] -- start gdb running, default procedure
#
# INFERIOR_PTY should be set to separate-inferior-tty to have the inferior work
# with it's own PTY. If set to same-inferior-tty, the inferior shares GDB's PTY.
@@ -94,7 +94,7 @@ proc mi_uncatched_gdb_exit {} {
# tests on different hosts all using the same server, things can
# get really slow. Give gdb at least 3 minutes to start up.
#
-proc mi_gdb_start { args } {
+proc default_mi_gdb_start { args } {
global verbose
global GDB
global GDBFLAGS
@@ -230,6 +230,14 @@ proc mi_gdb_start { args } {
return 0;
}
+#
+# Overridable function. You can override this function in your
+# baseboard file.
+#
+proc mi_gdb_start { args } {
+ return [default_mi_gdb_start $args]
+}
+
# Many of the tests depend on setting breakpoints at various places and
# running until that breakpoint is reached. At times, we want to start
# with a clean-slate with respect to breakpoints, so this utility proc