gdb: Fix more parameter passing to mi_create_breakpoint
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 13 Jul 2017 19:55:11 +0000 (20:55 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 13 Jul 2017 20:05:42 +0000 (21:05 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-vla-fortran.exp

index b9a9f94a41a20e9a4e1e2068554a6d632d82123e..c29f6e504a9f300687a846f20238fa8a20b5600a 100644 (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>
 
        * gdb.mi/mi-vla-fortran.exp: Correct parameter passing to
index 7b40aba6d7f37c7616f69d2679ba4186f539528f..c7f9bd49dabf01ce96bce9a73803184ad37aef64 100644 (file)
@@ -127,8 +127,9 @@ mi_gdb_test "570-data-evaluate-expression vla1" \
 
 
 set bp_lineno [gdb_get_line_number "pvla2-not-associated"]
-mi_create_breakpoint "-t vla.f90:$bp_lineno" 6 "del" "vla" ".*vla.f90" \
-  $bp_lineno $hex "insert breakpoint at line $bp_lineno"
+mi_create_breakpoint "-t vla.f90:$bp_lineno" \
+    "insert breakpoint at line $bp_lineno" \
+    -number 6 -disp "del" -func "vla" ".*vla.f90" $bp_lineno $hex
 mi_run_cmd
 mi_expect_stop "breakpoint-hit" "vla" "" ".*vla.f90" "$bp_lineno" \
   { "" "disp=\"del\"" } "run to breakpoint at line $bp_lineno"