Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
To: xinan tang <xinan@TidalNetworks.net>
Cc: gdb@sources.redhat.com
Subject: Re: "Debugging stubs for supporting tracepoint"
Date: Tue, 27 Jul 2004 04:07:00 -0000	[thread overview]
Message-ID: <1090899435.15802.8.camel@localhost> (raw)
In-Reply-To: <52BBA75459915749B68F93B604B636CD21AC@neptune.TidalNetworks.net>

Hi,


> Hi
> 
> 
> 
> Hi 
> 
>   The following is except from doc., "Debugging with GDB":
> 
> ____________________________________________________________ 
> The tracepoint facility is currently available only for remote targets. 
> See Chapter 16[Targets], page 143. In addition, your remote target 
> must know how to collect trace data. This functionality is implemented
> in the remote stub; however, none of the stubs distributed
> with gdb support tracepoints as of this writing.
> This chapter describes the tracepoint commands and features.
> ------------------------------------------------------------------
> 
>   Then question is where to get start if one wants to implement
> tracepoint support on remote stubs?

In the remote stub, you would need the stub to collect data per
tracepoint whenever it is hit. Right , so what are tracepoints ? 

Tracepoints can be thought of to be equivalent to software breakpoints
from an implementation point of view and the commands / actions need to
be executed at the time the tracepoint is hit . So in your stub you
would determine whether a breakpoint or a tracepoint has been hit when
the inferior stops and then store the data needed in whatever format
needed.

 (Commands / Actions which have been specified for the tracepoints about
which you can find info in the Agent Expression chapter in the manual /
ax-gdb.c in the source tree.) . The mailing list archives could give you
some idea regarding the same also. AFAIK none of the existing stubs in
the source tree support them. 

cheers
ramana



      reply	other threads:[~2004-07-27  3:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-27  3:37 xinan tang
2004-07-27  4:07 ` Ramana Radhakrishnan [this message]

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=1090899435.15802.8.camel@localhost \
    --to=ramana.radhakrishnan@codito.com \
    --cc=gdb@sources.redhat.com \
    --cc=xinan@TidalNetworks.net \
    /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