diff options
Diffstat (limited to 'gdb/testsuite/gdb.opencl/vec_comps.exp')
-rw-r--r-- | gdb/testsuite/gdb.opencl/vec_comps.exp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.opencl/vec_comps.exp b/gdb/testsuite/gdb.opencl/vec_comps.exp index cb275bc..de537c2 100644 --- a/gdb/testsuite/gdb.opencl/vec_comps.exp +++ b/gdb/testsuite/gdb.opencl/vec_comps.exp @@ -40,15 +40,19 @@ if { [gdb_compile_opencl_hostapp "${clprogram}" "${testfile}" "" ] != "" } { clean_restart ${testfile} # Set breakpoint at the OpenCL kernel -gdb_test_multiple "break testkernel" "set pending breakpoint" { - -re ".*Function \"testkernel\" not defined.*Make breakpoint pending.*y or \\\[n\\\]. $" { - gdb_test "y" "Breakpoint.*testkernel.*pending." "set pending breakpoint (without symbols)" - } -} +gdb_test "break testkernel" \ + "" \ + "Set pending breakpoint" \ + ".*Function \"testkernel\" not defined.*Make breakpoint pending.*y or \\\[n\\\]. $" \ + "y" gdb_run_cmd gdb_test "" ".*Breakpoint.*1.*testkernel.*" "run" +# Continue to the marker +gdb_breakpoint [gdb_get_line_number "marker" "${clprogram}"] +gdb_continue_to_breakpoint "marker" + # Check if the language was switched to opencl gdb_test "show language" "The current source language is \"auto; currently opencl\"\." |