public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: "Newman,
	Mark (N-Superior Technical Resource Inc)" <mark.newman@lmco.com>
Cc: Jim Blandy <jimb@redhat.com>, gdb@sources.redhat.com
Subject: Re: tracepoint frames
Date: Mon, 06 Oct 2003 14:52:00 -0000	[thread overview]
Message-ID: <20031006145238.GA32561@nevyn.them.org> (raw)
In-Reply-To: <F56FBA314E8E5A41895F0DA8F6716A6D02A1C6@EMSS04M11.us.lmco.com>

On Mon, Oct 06, 2003 at 09:59:46AM -0400, Newman, Mark (N-Superior Technical Resource Inc) wrote:
> 
> First - thanks for the response

I don't suppose you could use a mail client which quotes normally? 
It's hard to see your responses.

> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@mvista.com]
> Sent: Monday, October 06, 2003 9:51 AM
> To: Newman, Mark (N-Superior Technical Resource Inc)
> Cc: Jim Blandy; gdb@sources.redhat.com
> Subject: Re: tracepoint frames
> 
> 
> On Mon, Oct 06, 2003 at 09:03:03AM -0400, Newman, Mark (N-Superior
> Technical Resource Inc) wrote:
> > 
> > Jim -
> > 
> > When a trace point is hit some data is collected - certainly at a
> > minimum the data specified by the collect statements.  However from
> some
> > earlier conversations and a converstaion with Ramana that additional
> > information should be collected.  Michael indicated that he collected
> a
> > "frame" in addition to the registers, data items, etc specified in the
> > collect commands.
> > 
> > Is it necessary to collect enough information to support say a
> > "backtrace" command (after a tfind)? 
> 
> Well, it would be nice but it's not generally possible.  The backtrace
> logic is pretty hairy and target-dependent; the stub has no way to find
> out what will be necessary.



> If this is necessary I was thinking that the sub could collect the whole
> stack.  However this seems to be prohibitively expensive in both size
> and speed.

Yes, it is.  On some architectures it's not even enough.

> > I have found that simple "print" commands will work and that "printf"
> > commands will not work unless one sets up the complete environment. Is
> > there a requirement or a preference on the part of the community as to
> > what needs to be available when analyzing a tracepoint?
> 
> Probably if any additional data ought to be collected that shoud be
> implemented in the GDB client, not silently by the stub.
> 
> I thought that the data was collected only in the stub when a tracepoint
> is hit.  GDB never sees the data until a "g" or an "m" protocol message
> arrives at the stub.

Right, but GDB could request more information from the stub when it
creates the tracepoint.  The stub shouldn't have to collect anything at
all that GDB didn't tell it to.


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

  reply	other threads:[~2003-10-06 14:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-06 14:01 Newman, Mark (N-Superior Technical Resource Inc)
2003-10-06 14:52 ` Daniel Jacobowitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-06 13:03 Newman, Mark (N-Superior Technical Resource Inc)
2003-10-06 13:51 ` Daniel Jacobowitz
2003-10-03 15:56 Newman, Mark (N-Superior Technical Resource Inc)
2003-10-03 23:57 ` Jim Blandy

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=20031006145238.GA32561@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@redhat.com \
    --cc=mark.newman@lmco.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).