diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-06-02 19:58:21 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-06-02 19:58:21 +0000 |
commit | 9db7054520d96d6e4d4c40a54280a2cec73b7adb (patch) | |
tree | 24e7b50f1e92ca99d9092839614139e221c0f477 /gdb/testsuite/gdb.threads/hand-call-in-threads.exp | |
parent | 0ab48859b9a642d6393ccb0c43bda33360b83750 (diff) | |
download | gdb-9db7054520d96d6e4d4c40a54280a2cec73b7adb.zip gdb-9db7054520d96d6e4d4c40a54280a2cec73b7adb.tar.gz gdb-9db7054520d96d6e4d4c40a54280a2cec73b7adb.tar.bz2 |
2010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.threads/attach-stopped.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/attachstop-mt.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/gcore-thread.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/hand-call-in-threads.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/linux-dp.exp: Replace uses of send_gdb / gdb_expect.
* gdb.threads/print-threads.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/pthreads.exp: Replace uses of send_gdb / gdb_expect.
* gdb.threads/schedlock.exp: Replace uses of send_gdb / gdb_expect.
* gdb.threads/sigthread.exp: Replace uses of send_gdb / gdb_expect.
Diffstat (limited to 'gdb/testsuite/gdb.threads/hand-call-in-threads.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/hand-call-in-threads.exp | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp index 8028bcc..572982a 100644 --- a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp +++ b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp @@ -38,24 +38,20 @@ if [target_info exists gdb,cannot_call_functions] { } proc get_dummy_frame_number { } { - global gdb_prompt - - send_gdb "bt\n" - gdb_expect { - -re "#(\[0-9\]*) *<function called from gdb>.*$gdb_prompt $" - { - return $expect_out(1,string) - } - -re "$gdb_prompt $" - { - return "" - } - timeout - { - return "" - } - } - return "" + global gdb_prompt + + gdb_test_multiple "bt" "" { + -re "#(\[0-9\]*) *<function called from gdb>.*$gdb_prompt $" { + return $expect_out(1,string) + } + -re "$gdb_prompt $" { + return "" + } + timeout { + return "" + } + } + return "" } gdb_exit |