From: Denis PILAT <denis.pilat@st.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [RFC] thread apply commands change selected frame
Date: Wed, 31 Jan 2007 19:30:00 -0000 [thread overview]
Message-ID: <45C0BC7E.80409@st.com> (raw)
In-Reply-To: <20070131145407.GA24233@nevyn.them.org>
[-- Attachment #1: Type: text/plain, Size: 513 bytes --]
> The default name for a test is the command, if you don't specify a
> name. These are pretty generic commands, but test names are supposed
> to be unique within a .exp file. I would recommend giving them names
> (and probably checking their output, at least a little, too...).
>
>
Your remarks have been taken into account into the attached patch.
Are you ok for committing this one plus the previous patch regarding the
thread.c ?
(Frederic Riss will do that for me)
--
Denis Pilat
STMicroelectronics
[-- Attachment #2: threadapply.exp.patch --]
[-- Type: text/plain, Size: 1176 bytes --]
2007-01-31 Denis Pilat <denis.pilat@st.com>
* gdb.threads/threadapply.exp: check that frame is not changed by
the thread apply all command.
Index: testsuite/gdb.threads/threadapply.exp
===================================================================
--- testsuite/gdb.threads/threadapply.exp (revision 553)
+++ testsuite/gdb.threads/threadapply.exp (working copy)
@@ -69,3 +69,9 @@ gdb_test_multiple "define backthread" "d
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"
+# 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 ..*\\\$7 = 1.*Thread ..*\\\$8 = 1.*Thread ..*\\\$9 = 1.*Thread ..*\\\$10 = 1.*Thread ..*\\\$11 = 1.*Thread ..*\\\$12 = 1" "run a simple print command on all thread"
+gdb_test "down" "#0.*thread_function.*" "go down and check selected frame"
next prev parent reply other threads:[~2007-01-31 19:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-11 11:24 Denis PILAT
2007-01-21 17:33 ` Daniel Jacobowitz
2007-01-24 10:42 ` Denis PILAT
2007-01-31 8:58 ` Denis PILAT
2007-01-31 14:54 ` Daniel Jacobowitz
2007-01-31 19:30 ` Denis PILAT [this message]
2007-01-31 19:33 ` Daniel Jacobowitz
2007-02-01 9:49 ` [RFA] " Denis PILAT
2007-02-01 14:33 ` Daniel Jacobowitz
2007-02-02 12:40 ` Denis PILAT
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45C0BC7E.80409@st.com \
--to=denis.pilat@st.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox