gdb: Fix more parameter passing to mi_create_breakpoint

In the test gdb.mi/mi-vla-fortran.exp the parameters passed to
mi_create_breakpoint are passed in the wrong order.  By good luck the
tests still passes, however the wrong test name is used.  All fixed in
this commit.

A previous commit fixed most of these, but I missed this last one.

gdb/testsuite/ChangeLog:

	* gdb.mi/mi-vla-fortran.exp: Correct even more parameter passing
	to mi_create_breakpoint.
This commit is contained in:
Andrew Burgess
2017-07-13 20:55:11 +01:00
parent c55a47e723
commit b4365d025e
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2017-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.mi/mi-vla-fortran.exp: Correct even more parameter passing
to mi_create_breakpoint.
2017-07-13 Andrew Burgess <andrew.burgess@embecosm.com> 2017-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.mi/mi-vla-fortran.exp: Correct parameter passing to * gdb.mi/mi-vla-fortran.exp: Correct parameter passing to

View File

@ -127,8 +127,9 @@ mi_gdb_test "570-data-evaluate-expression vla1" \
set bp_lineno [gdb_get_line_number "pvla2-not-associated"] set bp_lineno [gdb_get_line_number "pvla2-not-associated"]
mi_create_breakpoint "-t vla.f90:$bp_lineno" 6 "del" "vla" ".*vla.f90" \ mi_create_breakpoint "-t vla.f90:$bp_lineno" \
$bp_lineno $hex "insert breakpoint at line $bp_lineno" "insert breakpoint at line $bp_lineno" \
-number 6 -disp "del" -func "vla" ".*vla.f90" $bp_lineno $hex
mi_run_cmd mi_run_cmd
mi_expect_stop "breakpoint-hit" "vla" "" ".*vla.f90" "$bp_lineno" \ mi_expect_stop "breakpoint-hit" "vla" "" ".*vla.f90" "$bp_lineno" \
{ "" "disp=\"del\"" } "run to breakpoint at line $bp_lineno" { "" "disp=\"del\"" } "run to breakpoint at line $bp_lineno"