From: Daniel Jacobowitz <drow@false.org>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: Denis PILAT <denis.pilat@st.com>, gdb-patches@sourceware.org
Subject: Re: [RFC] -thread-select double print stack frame
Date: Wed, 28 Mar 2007 02:11:00 -0000 [thread overview]
Message-ID: <20070328021123.GA28506@caradoc.them.org> (raw)
In-Reply-To: <17929.36634.510715.364996@farnswood.snap.net.nz>
On Wed, Mar 28, 2007 at 09:39:38AM +1200, Nick Roberts wrote:
> Daniel Jacobowitz writes:
> > On Mon, Mar 26, 2007 at 03:19:31PM +0200, Denis PILAT wrote:
> > > 2007-03-26 Denis Pilat <denis.pilat@st.com>
> >
> > > * stack.c (print_stack_frame): alway use LOC_AND_ADDRESS in mi output.
> > > * infrun.c (normal_stop): remove mi specific frame printing treatment.
> >
> > This is basically OK; I agree with Nick that it's the right solution.
> > It needs some formatting fixes, though.
>
> But why do you think that while file and line details are currenly duplicated
> in MI, they are not in CLI? (I mean what is the underlying logic/cause, not
> the just the code differences).
Here's what I get from the CLI:
[Switching to thread 1 (Thread 46912506009296 (LWP 28747))]#0 main
(argc=1, argv=0x7fffffffe178)
at /space/fsf/commit/src/gdb/gdb.c:28
28 {
The first line is the frame description and becomes the new-thread-id
and the frame={} tuple. The second line ("28 {") comes from
print_source_lines (from lack of ui_source_list). I think we need
both, because we use print_source_lines in other contexts too, but I'm
not sure about that.
So the short answer is that they are duplicated in the CLI too. The
two copies are just formatted so differently that it isn't obvious.
This does make me wonder about the patch though. Denis, could you
hold off on committing it? Which duplicate copy are you eliminating?
Maybe we should diff two testsuite runs to see what else changes.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-03-28 2:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-19 13:48 Denis PILAT
2007-03-20 0:57 ` Nick Roberts
2007-03-26 13:19 ` Denis PILAT
2007-03-27 19:33 ` Daniel Jacobowitz
2007-03-27 21:42 ` Nick Roberts
2007-03-28 2:11 ` Daniel Jacobowitz [this message]
2007-03-28 5:56 ` Nick Roberts
2007-03-28 8:26 ` Denis PILAT
2007-03-28 11:43 ` Daniel Jacobowitz
2007-03-29 7:45 ` 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=20070328021123.GA28506@caradoc.them.org \
--to=drow@false.org \
--cc=denis.pilat@st.com \
--cc=gdb-patches@sourceware.org \
--cc=nickrob@snap.net.nz \
/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