diff options
author | Michael Snyder <msnyder@vmware.com> | 2009-07-14 20:17:26 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2009-07-14 20:17:26 +0000 |
commit | f662c3bce4df8aa5361122ea49dec9ee0e14dfad (patch) | |
tree | 69ae24fecbe9425f9070cc1bd190b8cd0e773702 /gdb/testsuite | |
parent | 01a8f077edb6f09060c339831a9b3c7e5f45c812 (diff) | |
download | gdb-f662c3bce4df8aa5361122ea49dec9ee0e14dfad.zip gdb-f662c3bce4df8aa5361122ea49dec9ee0e14dfad.tar.gz gdb-f662c3bce4df8aa5361122ea49dec9ee0e14dfad.tar.bz2 |
2009-07-14 Michael Snyder <msnyder@vmware.com>
* gdb.reverse/step-reverse.exp (stepi into function call):
Call instruction may not be first instruction in the line.
(reverse stepi from a function call): Used wrong line number.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/step-reverse.exp | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 388303d..763a12f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-07-14 Michael Snyder <msnyder@vmware.com> + + * gdb.reverse/step-reverse.exp (stepi into function call): + Call instruction may not be first instruction in the line. + (reverse stepi from a function call): Used wrong line number. + 2009-07-13 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.arch/amd64-i386-address.exp, gdb.arch/amd64-i386-address.S: New. diff --git a/gdb/testsuite/gdb.reverse/step-reverse.exp b/gdb/testsuite/gdb.reverse/step-reverse.exp index 050b750..31a707d 100644 --- a/gdb/testsuite/gdb.reverse/step-reverse.exp +++ b/gdb/testsuite/gdb.reverse/step-reverse.exp @@ -104,6 +104,10 @@ gdb_test_multiple "stepi" "$test_message" { send_gdb "stepi\n" exp_continue } + -re "STEPI TEST.*$gdb_prompt $" { + send_gdb "stepi\n" + exp_continue + } } # stepi thru return of a function call @@ -168,7 +172,7 @@ gdb_test_multiple "stepi" "$test_message" { # stepi backward out of a function call -set stepi_location [gdb_get_line_number "FINISH TEST" "$srcfile"] +set stepi_location [gdb_get_line_number "STEPI TEST" "$srcfile"] set test_message "reverse stepi from a function call" gdb_test_multiple "stepi" "$test_message" { -re "ARRIVED IN CALLEE.*$gdb_prompt $" { @@ -178,7 +182,7 @@ gdb_test_multiple "stepi" "$test_message" { send_gdb "stepi\n" exp_continue } - -re "${hex}\[ \t\]*$stepi_location.*STEPI TEST.*$gdb_prompt $" { + -re "${hex} in main .*:$stepi_location.*STEPI TEST.*$gdb_prompt $" { send_gdb "stepi\n" exp_continue } |