2004-11-30 Randolph Chung <tausq@debian.org>
* gdb.threads/thread_check.exp: Use ${srcfile} for test program name instead of "tbug". Fix regexp to work properly with gdb_test.
This commit is contained in:
parent
46905982ed
commit
8de0841b1c
|
@ -1,3 +1,8 @@
|
||||||
|
2004-11-30 Randolph Chung <tausq@debian.org>
|
||||||
|
|
||||||
|
* gdb.threads/thread_check.exp: Use ${srcfile} for test program name
|
||||||
|
instead of "tbug". Fix regexp to work properly with gdb_test.
|
||||||
|
|
||||||
2004-11-29 Paul Hilfinger <Hilfinger@gnat.com>
|
2004-11-29 Paul Hilfinger <Hilfinger@gnat.com>
|
||||||
|
|
||||||
* gdb.base/bitfields2.exp: New test.
|
* gdb.base/bitfields2.exp: New test.
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
# in ptrace system call.
|
# in ptrace system call.
|
||||||
#
|
#
|
||||||
# Test Strategy:
|
# Test Strategy:
|
||||||
# - tbug.c creates 2 threads
|
# - thread_check.c creates 2 threads
|
||||||
# - start gdb
|
# - start gdb
|
||||||
# - create 2 breakpoints #1 main() #2 tf() (the thread function)
|
# - create 2 breakpoints #1 main() #2 tf() (the thread function)
|
||||||
# - run gdb till #1 main() breakpoint is reached
|
# - run gdb till #1 main() breakpoint is reached
|
||||||
|
@ -74,14 +74,14 @@ gdb_test "break tf" \
|
||||||
# continue to tf() breakpoint #2
|
# continue to tf() breakpoint #2
|
||||||
#
|
#
|
||||||
gdb_test "continue" \
|
gdb_test "continue" \
|
||||||
".*Breakpoint 2.*tf.* at .*tbug.* .*\r\n.*$gdb_prompt $" \
|
".*Breakpoint 2,.*tf.*at.*$srcfile:.*" \
|
||||||
"continue to tf"
|
"continue to tf"
|
||||||
|
|
||||||
#
|
#
|
||||||
# backtrace from thread function.
|
# backtrace from thread function.
|
||||||
#
|
#
|
||||||
gdb_test "backtrace" \
|
gdb_test "backtrace" \
|
||||||
"#0 .*tf .*at .*tbug.*" \
|
"#0 .*tf .*at .*$srcfile:.*" \
|
||||||
"backtrace from thread function"
|
"backtrace from thread function"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue