Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Denis PILAT <denis.pilat@st.com>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [RFC] thread apply commands change selected frame
Date: Wed, 31 Jan 2007 14:54:00 -0000	[thread overview]
Message-ID: <20070131145407.GA24233@nevyn.them.org> (raw)
In-Reply-To: <45C05A1A.6010109@st.com>

On Wed, Jan 31, 2007 at 09:58:02AM +0100, Denis PILAT wrote:
> I propose a new implementation that does not change the old behavior of 
> gdb with respect to the printing of the last frame in case we changed of 
> thread during "thread apply" command execution.
> 
> This implementation does not make any regression in the testsuite for a 
> i386-linux target.
> To me the part that prints the stack frame at the end of execution of 
> "thread apply" could be entirely removed but this will imply some 
> changes in the testsuite. I can do that it's up to you.

Thanks.  I don't have any opinion on this - for now, let's just leave
it the way it was.

> +# Go into the thread_function to check that a simple "thread apply"
> +# does not change the selected frame.
> +gdb_test "step" "thread_function.*"
> +gdb_test "up"
> +gdb_test "thread apply all print 1"
> +gdb_test "down" "#0.*thread_function.*" "Thread apply must not change the selected frame"

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...).

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-01-31 14:54 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 [this message]
2007-01-31 19:30         ` Denis PILAT
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=20070131145407.GA24233@nevyn.them.org \
    --to=drow@false.org \
    --cc=denis.pilat@st.com \
    --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