Lines Matching refs:test
48 # In the first test, we do a "step" on a function whose last instruction
56 set test "stepi till main"
57 gdb_test_multiple "stepi" "${test}" {
63 fail $test
66 pass $test
70 # In the second test, we verify that we can get a proper backtrace
80 set test "get address of $sym"
81 gdb_test_multiple "print $sym" $test {
84 pass $test
108 # In the third test, we verify that backtraces from nullified instructions
111 proc gen_core { test } {
114 set gcore_works [gdb_gcore_cmd $gcorefile "$test: gcore"]
118 proc test_core_bt { test } {
122 "$test: load core file" "A program is being debugged already.*" "y"
124 gdb_test "backtrace" ".*in foo.*in main.*" "$test: backtrace in gcore"
127 set test "core at last insn in foo"
133 gdb_test "continue" "Breakpoint \[0-9\]*,.* in foo.*" "$test: continue to breakpoint"
134 if [gen_core $test] {
135 test_core_bt $test
138 set test "core at nullified insn"
144 gdb_test "continue" "Breakpoint \[0-9\]*,.* in foo.*" "$test: continue to breakpoint"
145 gdb_test "stepi" ".*in foo.*" "$test: step to nullified instruction"
146 if [gen_core $test] {
147 test_core_bt $test