+2016-12-01 Luis Machado <lgustavo@codesourcery.com>
+
+ Fix test names starting with uppercase throughout the files.
+
+ * gdb.ada/array_return.exp
+ * gdb.ada/expr_delims.exp
+ * gdb.ada/mi_dyn_arr.exp
+ * gdb.ada/mi_interface.exp
+ * gdb.ada/mi_var_array.exp
+ * gdb.ada/watch_arg.exp
+ * gdb.arch/alpha-step.exp
+ * gdb.arch/altivec-regs.exp
+ * gdb.arch/e500-regs.exp
+ * gdb.arch/powerpc-d128-regs.exp
+ * gdb.base/arrayidx.exp
+ * gdb.base/break.exp
+ * gdb.base/checkpoint.exp
+ * gdb.base/debug-expr.exp
+ * gdb.base/dmsym.exp
+ * gdb.base/radix.exp
+ * gdb.base/sepdebug.exp
+ * gdb.base/testenv.exp
+ * gdb.base/watch_thread_num.exp
+ * gdb.base/watchpoint-cond-gone.exp
+ * gdb.cell/break.exp
+ * gdb.cell/ea-cache.exp
+ * gdb.compile/compile.exp
+ * gdb.cp/gdb2495.exp
+ * gdb.gdb/selftest.exp
+ * gdb.gdb/xfullpath.exp
+ * gdb.go/hello.exp
+ * gdb.go/integers.exp
+ * gdb.objc/basicclass.exp
+ * gdb.pascal/hello.exp
+ * gdb.pascal/integers.exp
+ * gdb.python/py-breakpoint.exp
+ * gdb.python/py-cmd.exp
+ * gdb.python/py-linetable.exp
+ * gdb.python/py-xmethods.exp
+ * gdb.python/python.exp
+ * gdb.reverse/consecutive-precsave.exp
+ * gdb.reverse/finish-precsave.exp
+ * gdb.reverse/i386-precsave.exp
+ * gdb.reverse/machinestate-precsave.exp
+ * gdb.reverse/sigall-precsave.exp
+ * gdb.reverse/solib-precsave.exp
+ * gdb.reverse/step-precsave.exp
+ * gdb.reverse/until-precsave.exp
+ * gdb.reverse/watch-precsave.exp
+ * gdb.threads/leader-exit.exp
+ * gdb.threads/pthreads.exp
+ * gdb.threads/wp-replication.exp
+ * gdb.trace/actions.exp
+ * gdb.trace/mi-tsv-changed.exp
+ * gdb.trace/tsv.exp
+
2016-12-01 Luis Machado <lgustavo@codesourcery.com>
Fix test names starting with uppercase throughout the files.
gdb_test "cont" \
"Breakpoint \[0-9\]+, pck.create_small \\(\\).*" \
- "Continuing to Create_Small"
+ "continuing to Create_Small"
gdb_test "finish" \
"Value returned is \\\$\[0-9\]+ = \\(1, 1\\)" \
gdb_test "cont" \
"Breakpoint \[0-9\]+, pck.create_large \\(\\).*" \
- "Continuing to Create_Large"
+ "continuing to Create_Large"
# On hppa32, the value returned is too large to be returned via a register.
# Instead, it is returned using the struct convention, and the debugger
gdb_test "cont" \
"Breakpoint \[0-9\]+, pck.create_small_float_vector \\(\\).*" \
- "Continuing to Create_Small_Float_Vector"
+ "continuing to Create_Small_Float_Vector"
gdb_test "finish" \
"Value returned is \\\$\[0-9\]+ = \\(4.25, 4.25\\)" \
# for an expression delimiter.
gdb_test "print thread" \
"= 1" \
- "Print variable 'thread'"
+ "print variable 'thread'"
gdb_test_no_output "delete 1"
gdb_test "watch thread" \
".*atchpoint \[0-9\]+: thread" \
- "Set plain watchpoint on variable 'thread'"
+ "set plain watchpoint on variable 'thread'"
# Make sure that 'if' when followed by an expression beginning
# with 'i' works.
gdb_test "watch thread if i = 2" \
".*atchpoint \[0-9\]+: thread" \
- "Set conditional watchpoint."
+ "set conditional watchpoint."
gdb_test "info break" \
".*${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}stop only if i = 2" \
- "Check that watchpoint is set correctly."
+ "check that watchpoint is set correctly."
# Check for right error when using both 'if' and 'thread' clauses.
gdb_test "break foo.adb:$bp_location if thread = 10 thread 999" \
".*Unknown thread 999\\." \
- "Combination of 'if' and 'thread' delimiters."
+ "combination of 'if' and 'thread' delimiters."
mi_gdb_test "-var-create bt * bt" \
"\\^done,name=\"bt\",numchild=\"3\",.*" \
- "Create bt varobj"
+ "create bt varobj"
mi_gdb_test "-var-update 1 *" \
"\\^done,changelist=\\\[\\\]" \
mi_gdb_test "-var-create ggg1 * ggg1" \
"\\^done,name=\"ggg1\",numchild=\"1\",value=\"{...}\",type=\"<ref> pck.gadatatype\",has_more=\"0\"" \
- "Create ggg1 varobj"
+ "create ggg1 varobj"
mi_gdb_test "-var-list-children 1 ggg1" \
"\\^done,numchild=\"1\",children=\\\[child={name=\"ggg1.i\",exp=\"i\",numchild=\"0\",value=\"42\",type=\"integer\"}\\\],has_more=\"0\"" \
mi_gdb_test "-var-create vta * vta" \
"\\^done,name=\"vta\",numchild=\"2\",.*" \
- "Create bt varobj"
+ "create bt varobj"
mi_gdb_test "-var-list-children vta" \
"\\^done,numchild=\"2\",children=\\\[child={name=\"vta.n\",exp=\"n\",numchild=\"0\",type=\"bar\\.int\"},child={name=\"vta.f\",exp=\"f\",numchild=\"0\",type=\"array \\(1 .. n\\) of character\"}\\\],.*" \
gdb_test "watch x" \
".*atchpoint \[0-9\]+: x" \
- "Set watchpoint on function argument X"
+ "set watchpoint on function argument X"
# Then insert a breakpoint at the location we'd like to continue to...
set bp_location [gdb_get_line_number "BREAK2" ${testdir}/watch.adb]
gdb_test "cont" \
"Breakpoint \[0-9\]+, watch \\(\\).*" \
- "Continuing to second breakpoint"
+ "continuing to second breakpoint"
gdb_test "x /i \$pc" \
"0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+fneg.*" \
- "Check stepi over fb$function stopped on fneg instruction"
+ "check stepi over fb$function stopped on fneg instruction"
}
gdb_test "break vector_fun" \
"Breakpoint 2 at.*altivec-regs.c, line \[0-9\]+\\." \
- "Set breakpoint at vector_fun"
+ "set breakpoint at vector_fun"
# Actually it is nuch easier to see these results printed in hex.
gdb_test "set output-radix 16" \
"Output radix now set to decimal 16, hex 10, octal 20." \
- "Set output radix to hex"
+ "set output radix to hex"
gdb_test "continue" \
"Breakpoint 2, vector_fun .a=.0xfefefefe, 0xfefefefe, 0xfefefefe, 0xfefefefe., b=.0x1010101, 0x1010101, 0x1010101, 0x1010101.*altivec-regs.c.*vec_splat_u8.2..;" \
gdb_test "break vector_fun" \
"Breakpoint 2 at.*e500-regs.c, line \[0-9\]+\\." \
- "Set breakpoint at vector_fun"
+ "set breakpoint at vector_fun"
# Actually it is nuch easier to see these results printed in hex.
# gdb_test "set output-radix 16" \
# "Output radix now set to decimal 16, hex 10, octal 20." \
-# "Set output radix to hex"
+# "set output radix to hex"
gdb_test "continue" \
"Breakpoint 2, vector_fun .a=.-2, -2., b=.1, 1.*e500-regs.c.*ev_create_s32 .2, 2.;" \
gdb_test "info reg dl$i" \
"dl$i\[ \]*1\.2345678910\[\t\]*\\(raw 0x2205800000000000000000049c5de09c\\)" \
- "Print dl$i register with the info reg command"
+ "print dl$i register with the info reg command"
gdb_test "info reg f[expr 2*$i]" \
"f[expr 2*$i]\[ \]*8\.608957309287334e\-145\[\t\]*\\(raw 0x2205800000000000\\)" \
- "Testing lower half of dl$i register"
+ "testing lower half of dl$i register"
gdb_test "info reg f[expr 2*$i+1]" \
"f[expr 2*$i+1]\[ \]*9\.7841140127686122e\-314\[\t\]*\\(raw 0x000000049c5de09c\\)" \
- "Testing upper half of dl$i register"
+ "testing upper half of dl$i register"
}
gdb_test "print array" \
"\\{1, 2, 3, 4\\}" \
- "Print array with array-indexes off"
+ "print array with array-indexes off"
# Second, print the same array with the indexes
gdb_test "print array" \
"\\{\\\[0\\\] = 1, \\\[1\\\] = 2, \\\[2\\\] = 3, \\\[3\\\] = 4\\}" \
- "Print array with array-indexes on"
+ "print array with array-indexes on"
#
gdb_test "tbreak $bp_location1" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location1.*" \
- "Temporary breakpoint line number #1"
+ "temporary breakpoint line number #1"
gdb_test "tbreak $bp_location6" "Temporary breakpoint.*at.* file .*$srcfile, line $bp_location6.*" "temporary breakpoint line number #2"
#
gdb_test "tbreak $srcfile:$bp_location2" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location2.*" \
- "Temporary breakpoint line number in file #1"
+ "temporary breakpoint line number in file #1"
set bp_location11 [gdb_get_line_number "set breakpoint 11 here"]
gdb_test "tbreak $srcfile:$bp_location11" "Temporary breakpoint.*at.* file .*$srcfile, line $bp_location11.*" "Temporary breakpoint line number in file #2"
gdb_test "shell diff -s $pi_txt $copy1_txt" \
"Files .*pi.txt and .*copy1.txt are identical.*" \
- "Diff input and output one"
+ "diff input and output one"
#
# And now run from various checkpoints, allowing
gdb_test "shell diff -s $pi_txt $copy1_txt" \
"Files .*pi.txt and .*copy1.txt are identical.*" \
- "Diff input and output two"
+ "diff input and output two"
#
# OK, now allow the original program to delete the output file,
delete_breakpoints
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
- "Exit, dropped into next fork one"
+ "exit, dropped into next fork one"
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
- "Exit, dropped into next fork two"
+ "exit, dropped into next fork two"
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
- "Exit, dropped into next fork three"
+ "exit, dropped into next fork three"
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
- "Exit, dropped into next fork four"
+ "exit, dropped into next fork four"
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
- "Exit, dropped into next fork five"
+ "exit, dropped into next fork five"
#
# There should be still at least five forks left
# This caused gdb to output garbage and possibly segfault
gdb_test "print \"hello\"" \
".*OP_STRING\[^\r\n\]*Language-specific string type: 0.*\[\r\n\]\\$$decimal = \"hello\"\[\r\n\].*" \
- "String evaluation with debug expr"
+ "string evaluation with debug expr"
gdb_run_cmd
gdb_test "" \
"Breakpoint $num, pck__foo__bar__minsym__2 \\(\\) at.*" \
- "Run until breakpoint at BREAK"
+ "run until breakpoint at BREAK"
gdb_test "continue" \
"Breakpoint $num, main \\(\\) at.*"
gdb_test "set radix" \
"Input and output radices now set to decimal 10, hex a, octal 12\." \
- "Reset radices"
+ "reset radices"
gdb_test "set input-radix 0" \
"Nonsense input radix ``decimal 0''; input radix unchanged\\." \
"Reject input-radix 0"
gdb_test "show input-radix" \
"Default input radix for entering numbers is 10\\." \
- "Input radix unchanged after rejecting 0"
+ "input radix unchanged after rejecting 0"
gdb_test "set input-radix 1" \
"Nonsense input radix ``decimal 1''; input radix unchanged\\." \
"Reject input-radix 1"
gdb_test "show input-radix" \
"Default input radix for entering numbers is 10\\." \
- "Input radix unchanged after rejecting 1"
+ "input radix unchanged after rejecting 1"
gdb_test "set output-radix 0" \
"Unsupported output radix ``decimal 0''; output radix unchanged\\." \
"Reject output-radix 1"
gdb_test "show output-radix" \
"Default output radix for printing of values is 10\\." \
- "Output radix unchanged after rejecting 1"
+ "output radix unchanged after rejecting 1"
gdb_test "set radix 7" \
"Unsupported output radix ``decimal 7''; output radix unchanged\\." \
"set radix 7 rejected"
gdb_test "show output-radix" \
"Default output radix for printing of values is 10\\." \
- "Output radix unchanged after rejection through set radix command"
+ "output radix unchanged after rejection through set radix command"
gdb_test "tbreak $bp_location1" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location1.*" \
- "Temporary breakpoint line number #1"
+ "temporary breakpoint line number #1"
gdb_test "tbreak $bp_location6" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location6.*" \
- "Temporary breakpoint line number #2"
+ "temporary breakpoint line number #2"
#
# test break at line number in file
gdb_test "tbreak $srcfile:$bp_location2" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location2.*" \
- "Temporary breakpoint line number in file #1"
+ "temporary breakpoint line number in file #1"
set bp_location11 [gdb_get_line_number "set breakpoint 11 here"]
gdb_test "tbreak $srcfile:$bp_location11" "Temporary breakpoint.*at.* file .*$srcfile, line $bp_location11.*" "Temporary breakpoint line number in file #2"
# First test with no TEST_GDB_VAR
gdb_test "continue" \
".*Program found 0 variables starting with TEST_GDB.*" \
- "Test no TEST_GDB var"
+ "test no TEST_GDB var"
gdb_test_no_output "set env TEST_GDB_VAR1 test1" \
"Set TEST_GDB_VAR1"
# Second test with one TEST_GDB_VAR
gdb_test "continue" \
".*Program found 1 variables starting with TEST_GDB.*" \
- "Test with one TEST_GDB var"
+ "test with one TEST_GDB var"
gdb_test_no_output "set env TEST_GDB_VAR2 test2" \
"Set TEST_GDB_VAR2"
# Third test with two TEST_GDB_VAR
gdb_test "continue" \
".*Program found 2 variables starting with TEST_GDB.*" \
- "Test with two TEST_GDB var"
+ "test with two TEST_GDB var"
gdb_test_no_output "unset env TEST_GDB_VAR1" \
"Unset TEST_GDB_VAR1"
# with unset command.
gdb_test "continue" \
".*Program found 1 variables starting with TEST_GDB.*" \
- "Test with one TEST_GDB var, after unset"
+ "test with one TEST_GDB var, after unset"
gdb_exit
# First test with only inherited TEST_GDB_GLOBAL
gdb_test "continue" \
".*TEST_GDB_GLOBAL=Global environment value.*Program found 1 variables starting with TEST_GDB.*" \
- "Test with TEST_GDB_GLOBAL"
+ "test with TEST_GDB_GLOBAL"
gdb_test_no_output "unset env TEST_GDB_GLOBAL" \
"Unset TEST_GDB_GLOBAL"
# Second test with one TEST_GDB_VAR
gdb_test "continue" \
".*Program found 0 variables starting with TEST_GDB.*" \
- "Test with TEST_GDB_GLOBAL unset"
+ "test with TEST_GDB_GLOBAL unset"
gdb_exit
gdb_test "awatch shared_var thread $thread_num" \
"Hardware access \\(read/write\\) watchpoint .*: shared_var.*" \
- "Watchpoint on shared variable"
+ "watchpoint on shared variable"
gdb_test "info breakpoint \$bpnum" \
"stop only in thread $thread_num" \
gdb_test "finish" \
"Watchpoint .* deleted because the program has left the block in.*which its expression is valid..*in (\\.?jumper|func).*" \
- "Catch the no longer valid watchpoint"
+ "catch the no longer valid watchpoint"
# shouldn't prompt for anything.
gdb_test "delete breakpoints" \
"" \
- "No prompt when deleting non-existing breakpoints"
+ "no prompt when deleting non-existing breakpoints"
gdb_test "break main" \
"Breakpoint.*at.* file .*$testfile.c, line.*" \
# int_var and should now also contain 42 (ea cache has been flushed).
gdb_test "t 1" \
".*Switching to thread 1.*" \
- "Switch to thread 1"
+ "switch to thread 1"
gdb_test "p int_var" \
".*=.*42.*" \
#
gdb_test "compile code int i=2;" \
"The program must be running for the compile command to work.*" \
- "Test compile code command without running inferior"
+ "test compile code command without running inferior"
gdb_test "compile int i=2;" \
"The program must be running for the compile command to work.*" \
- "Test compile command without running inferior"
+ "test compile command without running inferior"
gdb_test "compile file -r ${srcdir}/${subdir}/${testfile}-mod.c" \
"The program must be running for the compile command to work.*" \
- "Test compile file command without running inferior"
+ "test compile file command without running inferior"
if ![runto_main] {
return -1
gdb_test "compile -- -r void _gdb_expr(){int i = 5;}" \
".* error: 'r' undeclared \\(first use in this function\\).*" \
- "Test delimiter with -r after it"
+ "test delimiter with -r after it"
gdb_test "p globalvar" " = 10" "expect 10"
"Test compile file and raw option without a filename"
gdb_test "compile file -z" \
"Unknown argument.*" \
- "Test compile file with unknown argument"
+ "test compile file with unknown argument"
# LOC_CONST tests.
# does not handle it. It should be rewound.
gdb_test "p exceptions.throw_function()" \
"The program being debugged entered a std::terminate call, .*" \
- "Call a function that raises an exception without a handler."
+ "call a function that raises an exception without a handler."
# Make sure that after rewinding we are back at the call parent.
gdb_test "bt" \
# Check that it is turned off.
gdb_test "show unwind-on-terminating-exception" \
"exception is unhandled while in a call dummy is off.*" \
- "Turn off unwind on terminating exception flag"
+ "turn off unwind on terminating exception flag"
# Check that the old behaviour is restored.
gdb_test "p exceptions.throw_function()" \
"The program being debugged was signaled while in a function called .*" \
- "Call a function that raises an exception with unwinding off.."
+ "call a function that raises an exception with unwinding off.."
# Restart the inferior back at main.
if ![runto_main] then {
# Check that it is turned on.
gdb_test "show unwindonsignal" \
"signal is received while in a call dummy is on.*" \
- "Turn on unwind on signal"
+ "turn on unwind on signal"
# Check to see if new behaviour interferes with
# normal signal handling in inferior function calls.
# Check that it is actually turned off.
gdb_test "show unwindonsignal" \
"signal is received while in a call dummy is off.*" \
- "Turn off unwind on signal"
+ "turn off unwind on signal"
# Check to see if new behaviour interferes with
# normal signal handling in inferior function calls.
# disassemble yourself
gdb_test "x/10i main" \
"x/10i.*main.*main($cxx_main_args_re)?.$decimal.*main($cxx_main_args_re)?.$decimal.*" \
- "Disassemble main"
+ "disassemble main"
# We'll need this when we send a ^C to GDB. Need to do it before we
# run the program and gdb starts saving and restoring tty states.
# An empty filename
gdb_test "print gdb_realpath (\"\")" \
".\[0-9\]+ =.*\"\"" \
- "An empty filename"
+ "an empty filename"
return 0
}
gdb_test "print st" \
".* = $hex \"\"" \
- "Starting string check"
+ "starting string check"
if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
pass "setting breakpoint 1"
gdb_test "print st" \
".* = $hex \"Hello, world!\"" \
- "String after assignment check"
+ "string after assignment check"
"Going to second breakpoint"
gdb_test "print i" \
".* = 5.*" \
- "Value of i after assignment"
+ "value of i after assignment"
#
gdb_test "print \[self printHi\]" \
"Hi.*\\$\[0-9\] = \\(.*objc_object \\*\\) 0x\[0-9a-f\]+" \
- "Call an Objective-C method with no arguments"
+ "call an Objective-C method with no arguments"
gdb_test "print \[self printNumber: 42\]" \
"42.*\\$\[0-9\] = 43" \
- "Call an Objective-C method with one argument"
+ "call an Objective-C method with one argument"
#
# Test printing the object description
#
gdb_test "print-object object" \
"BasicClass gdb test object" \
- "Use of the print-object command"
+ "use of the print-object command"
gdb_test "po self" \
"BasicClass gdb test object" \
- "Use of the po (print-object) command"
+ "use of the po (print-object) command"
"Going to first breakpoint"
gdb_test "print st" \
".* = ''.*" \
- "Empty string check"
+ "empty string check"
# This test also fails for gpc because the program
# stops after the string has been written
"Going to second breakpoint"
gdb_test "print st" \
".* = 'Hello, world!'.*" \
- "String after assignment check"
+ "string after assignment check"
"Going to second breakpoint"
gdb_test "print i" \
".* = 5.*" \
- "Value of i after assignment"
+ "value of i after assignment"
gdb_test "python print (blist\[1\].location)" \
"py-breakpoint\.c:${mult_line}*" \
- "Check breakpoint location @mult_line"
+ "check breakpoint location @mult_line"
# Check hit and ignore counts.
gdb_test "python print (blist\[1\].hit_count)" \
gdb_test "python eval_bp2.stop = stop_func" \
"RuntimeError: Only one stop condition allowed. There is currently a GDB.*" \
- "Assign stop function to a breakpoint that has a condition"
+ "assign stop function to a breakpoint that has a condition"
delete_breakpoints
gdb_breakpoint [gdb_get_line_number "Break at multiply."]
gdb_test "complete expr_test bar\." \
"expr_test bar\.bc.*expr_test bar\.ij.*" \
- "Test completion through complete command"
+ "test completion through complete command"
if { [readline_is_used] } {
set test "complete 'expr_test bar.i'"
"Get all source lines into a frozen set" 0
gdb_test "python print (sorted(fset))" \
"\\\[20, 21, 22, 24, 25, 28, 29, 30, 32, 33, 37, 39, 40, 42, 44, 45, 46\\\].*" \
- "Test frozen set contains line numbers"
+ "test frozen set contains line numbers"
# Test gdb.Linetable.has_line ()
gdb_test "python print(lt.has_line(20))" \
"Test has_pcs at line 40"
gdb_test "python print(lt.has_line(10))" \
"False.*" \
- "Test has_pcs at line 10"
+ "test has_pcs at line 10"
"After: g.mul<double>(2.0)"
gdb_test "p g.mul<char>('a')" "From Python G<>::mul.*" \
gdb_test "p g_ptr->mul<char>('a')" "From Python G<>::mul.*" \
- "After: g_ptr->mul<char>('a')"
+ "after: g_ptr->mul<char>('a')"
# Tests for 'disable/enable xmethod' command.
gdb_test_no_output "disable xmethod progspace G_methods" \
"Test print-stack set setting to none" 1
gdb_test "show python print-stack" \
"The mode of Python stack printing on error is \"none\".*" \
- "Test print-stack show setting to none"
+ "test print-stack show setting to none"
gdb_py_test_silent_cmd "set python print-stack message" \
"Test print-stack set setting to message" 1
set end_location [gdb_get_line_number "end of main" ]
gdb_test "break $end_location" \
"Breakpoint $decimal at .*$srcfile, line $end_location\." \
- "BP at end of main"
+ "breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
set breakloc [gdb_get_line_number "end of main" "$srcfile"]
gdb_test "break $breakloc" \
"Breakpoint $decimal at .*$srcfile, line $breakloc\." \
- "BP at end of main"
+ "breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
gdb_test "break $end_of_main" \
"Breakpoint $decimal at .*$srcfile, line $end_of_main\." \
- "BP at end of main"
+ "breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
gdb_test "break $endmain" \
"Breakpoint $decimal at .*$srcfile, line $endmain\." \
- "BP at end of main"
+ "breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end main .*" "run to end of main"
set breakloc [gdb_get_line_number "end of main" "$srcfile"]
gdb_test "break $breakloc" \
"Breakpoint $decimal at .*$srcfile, line $breakloc\." \
- "BP at end of main"
+ "breakpoint at end of main"
# Signal handlers must be disabled
gdb_test "handle all nostop noprint"
set end_of_main [gdb_get_line_number "end of main" ]
gdb_test "break $end_of_main" \
"Breakpoint $decimal at .*$srcfile, line $end_of_main\." \
- "BP at end of main"
+ "breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
set end_of_main [gdb_get_line_number "end of main" ]
gdb_test "break $end_of_main" \
"Breakpoint $decimal at .*$srcfile, line $end_of_main\." \
- "BP at end of main"
+ "breakpoint at end of main"
# This can take awhile.
with_timeout_factor 20 {
set end_of_main [gdb_get_line_number "set breakpoint 10a here" ]
gdb_test "break $end_of_main" \
"Breakpoint $decimal at .*$srcfile, line $end_of_main\." \
- "BP at end of main"
+ "breakpoint at end of main"
# This can take awhile.
with_timeout_factor 20 {
set end_location [gdb_get_line_number "end of main" ]
gdb_test "break $end_location" \
"Breakpoint $decimal at .*$srcfile, line $end_location\." \
- "BP at end of main"
+ "breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
gdb_test "info threads" \
"\r\n\[ \t\]*Id\[ \t\]+Target\[ \t\]+Id\[ \t\]+Frame\[ \t\]*\r\n\\* 2 *Thread \[^\r\n\]* at \[^\r\n\]*" \
- "Single thread has been left"
+ "single thread has been left"
# Test that ctrl-c works even if the leader has exited.
gdb_test "break thread2" "Breakpoint .* file .*$srcfile.*"
gdb_test "continue" \
"Continuing.*Breakpoint .*, thread2 \\(arg=0xdeadbeef\\).*at.*$srcfile.*" \
- "Continue to creation of second thread"
+ "continue to creation of second thread"
# Extract the thread id number of thread 2 from "info threads" output.
gdb_test_multiple "info threads" "get thread 2 id" {
# Prepare to create all the threads.
gdb_test "break thread_started" \
"Breakpoint \[0-9\]+ at .*: file .*${srcfile}, line .*" \
- "Breakpoint on thread_started"
+ "breakpoint on thread_started"
# Move all threads to where they're supposed to be for testing.
for { set i 0 } { $i < $NR_THREADS } { incr i } {
gdb_test "tvariable \$tsv" \
"Trace state variable \\\$tsv created, with initial value 0." \
- "Create a trace state variable"
+ "create a trace state variable"
gdb_trace_setactions "5.10a: set teval action for first tracepoint" \
"$trcpt1" \
gdb_test "tvariable \$tvar1" \
"Trace state variable \\\$tvar1 created, with initial value 0." \
- "Create a trace state variable"
+ "create a trace state variable"
gdb_test "tvariable \$tvar2 = 45" \
"Trace state variable \\\$tvar2 created, with initial value 45." \
gdb_test "tvariable \$tvar1" \
"Trace state variable \\\$tvar1 created, with initial value 0." \
- "Create a trace state variable"
+ "create a trace state variable"
gdb_test "tvariable \$tvar2 = 45" \
"Trace state variable \\\$tvar2 created, with initial value 45." \
- "Create a trace state variable with initial value"
+ "create a trace state variable with initial value"
gdb_test "tvariable \$tvar2 = -92" \
"Trace state variable \\\$tvar2 now has initial value -92." \
- "Change initial value of a trace state variable"
+ "change initial value of a trace state variable"
gdb_test "tvariable \$tvar3 = 2 + 3" \
"Trace state variable \\\$tvar3 created, with initial value 5." \
- "Create a trace state variable with expression"
+ "create a trace state variable with expression"
gdb_test "tvariable \$tvar3 = 1234567000000" \
"Trace state variable \\\$tvar3 now has initial value 1234567000000." \
- "Init trace state variable to a 64-bit value"
+ "init trace state variable to a 64-bit value"
gdb_test "tvariable $" \
"Must supply a non-empty variable name" \
gdb_test "info tvariables" \
"No trace state variables.*" \
- "List tvariables after deleting all"
+ "list tvariables after deleting all"
# Now try running a trace.
gdb_test "tvariable \$tvar5 = 15" \
"Trace state variable \\\$tvar5 created, with initial value 15." \
- "Create a trace state variable tvar5"
+ "create a trace state variable tvar5"
gdb_trace_setactions "collect tsv for first tracepoint" \
"$trcpt1" \