diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-02-27 20:29:31 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-02-27 20:29:31 +0000 |
commit | b40e7bf371ed0fb604e3907327b32ef6f039c4c9 (patch) | |
tree | b2cc68a34dfc469fff956a6148b8a1f89a595bd1 /gdb/testsuite/gdb.mi/mi2-simplerun.exp | |
parent | 6a048695b3493bf9d6bb6237f6601f551d6750ed (diff) | |
download | gdb-b40e7bf371ed0fb604e3907327b32ef6f039c4c9.zip gdb-b40e7bf371ed0fb604e3907327b32ef6f039c4c9.tar.gz gdb-b40e7bf371ed0fb604e3907327b32ef6f039c4c9.tar.bz2 |
* gdb.base/ending-run.exp: Use the first line of code inside
function body to test breakpoints.
* gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Adjust the actual
location where the breakpoint is inserted when using the line
where a function is declared. Fix typo in the description of
one of the tests.
* gdb.mi/mi-simplerun.exp, gdb.mi/mi2-simplerun.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi2-simplerun.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi2-simplerun.exp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.mi/mi2-simplerun.exp b/gdb/testsuite/gdb.mi/mi2-simplerun.exp index 31d4384..a036926 100644 --- a/gdb/testsuite/gdb.mi/mi2-simplerun.exp +++ b/gdb/testsuite/gdb.mi/mi2-simplerun.exp @@ -52,7 +52,9 @@ proc test_breakpoints_creation_and_listing {} { global hex set line_callee4_head [gdb_get_line_number "callee4 ("] + set line_callee4_body [expr $line_callee4_head + 2] set line_callee3_head [gdb_get_line_number "callee3 ("] + set line_callee3_body [expr $line_callee3_head + 2] set line_callee2_head [gdb_get_line_number "callee2 ("] set line_callee2_body [expr $line_callee2_head + 2] set line_main_head [gdb_get_line_number "main ("] @@ -75,11 +77,11 @@ proc test_breakpoints_creation_and_listing {} { "insert breakpoint at basics.c:callee2" mi_gdb_test "202-break-insert basics.c:$line_callee3_head" \ - "202\\^done,bkpt=\{number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"callee3\",file=\".*basics.c\",line=\"$line_callee3_head\",times=\"0\"\}" \ + "202\\^done,bkpt=\{number=\"3\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"callee3\",file=\".*basics.c\",line=\"$line_callee3_body\",times=\"0\"\}" \ "insert breakpoint at basics.c:\$line_callee3_head" mi_gdb_test "203-break-insert \"\\\"${srcfile}\\\":$line_callee4_head\"" \ - "203\\^done,bkpt=\{number=\"4\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"callee4\",file=\".*basics.c\",line=\"$line_callee4_head\",times=\"0\"\}" \ + "203\\^done,bkpt=\{number=\"4\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"callee4\",file=\".*basics.c\",line=\"$line_callee4_body\",times=\"0\"\}" \ "insert breakpoint at \"<fullfilename>\":\$line_callee4_head" mi_gdb_test "204-break-list" \ |