diff options
author | Denis Pilat <denis.pilat@st.com> | 2007-02-02 12:40:11 +0000 |
---|---|---|
committer | Denis Pilat <denis.pilat@st.com> | 2007-02-02 12:40:11 +0000 |
commit | d701dcab23c75ba4e49c3c4cab9a9d1f9669da5c (patch) | |
tree | 6b54c807a4f9fd440da398513b0eab0e43fd2718 | |
parent | 64a3a6fcf976dc8e2af363fc5ff6a66f82964dd3 (diff) | |
download | gdb-d701dcab23c75ba4e49c3c4cab9a9d1f9669da5c.zip gdb-d701dcab23c75ba4e49c3c4cab9a9d1f9669da5c.tar.gz gdb-d701dcab23c75ba4e49c3c4cab9a9d1f9669da5c.tar.bz2 |
2007-02-02 Denis Pilat <denis.pilat@st.com>
* gdb.threads/threadapply.exp: check that frame is not changed by
the thread apply all command.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/threadapply.exp | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2d45951..5ca882b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-02-02 Denis Pilat <denis.pilat@st.com> + + * gdb.threads/threadapply.exp: check that frame is not changed by + the thread apply all command. + 2007-01-31 Andreas Schwab <schwab@suse.de> * gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches. diff --git a/gdb/testsuite/gdb.threads/threadapply.exp b/gdb/testsuite/gdb.threads/threadapply.exp index 61fbebe..dcef7ef 100644 --- a/gdb/testsuite/gdb.threads/threadapply.exp +++ b/gdb/testsuite/gdb.threads/threadapply.exp @@ -67,5 +67,11 @@ gdb_test_multiple "define backthread" "defining macro" { # verify that the macro can get past the backtrace error and perform # subsequent commands. gdb_test "set backtrace limit 3" "" -gdb_test "thread apply all backthread" "Thread ..*\\\$1 = 0x14.*Thread ..*\\\$2 = 0x14.*Thread ..*\\\$3 = 0x14.*Thread ..*\\\$4 = 0x14.*Thread ..*\\\$5 = 0x14.*Thread ..*\\\$. = 0x14" +gdb_test "thread apply all backthread" "Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14" +# Go into the thread_function to check that a simple "thread apply" +# does not change the selected frame. +gdb_test "step" "thread_function.*" "step to the thread_function" +gdb_test "up" ".*in main.*" "go up in the stack frame" +gdb_test "thread apply all print 1" "Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1" "run a simple print command on all threads" +gdb_test "down" "#0.*thread_function.*" "go down and check selected frame" |