This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gdb: Fix more parameter passing to mi_create_breakpoint


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b4365d025e0b5c025658c7ffc4108502d56030f9

commit b4365d025e0b5c025658c7ffc4108502d56030f9
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Thu Jul 13 20:55:11 2017 +0100

    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.

Diff:
---
 gdb/testsuite/ChangeLog                 | 5 +++++
 gdb/testsuite/gdb.mi/mi-vla-fortran.exp | 5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b9a9f94..c29f6e5 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
 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
 	mi_create_breakpoint.
 
diff --git a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp b/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
index 7b40aba..c7f9bd4 100644
--- a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
+++ b/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
@@ -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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]