* "Debugging stubs for supporting tracepoint"
@ 2004-07-27 3:37 xinan tang
2004-07-27 4:07 ` Ramana Radhakrishnan
0 siblings, 1 reply; 2+ messages in thread
From: xinan tang @ 2004-07-27 3:37 UTC (permalink / raw)
To: gdb
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?
Thanks
--Xinan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "Debugging stubs for supporting tracepoint"
2004-07-27 3:37 "Debugging stubs for supporting tracepoint" xinan tang
@ 2004-07-27 4:07 ` Ramana Radhakrishnan
0 siblings, 0 replies; 2+ messages in thread
From: Ramana Radhakrishnan @ 2004-07-27 4:07 UTC (permalink / raw)
To: xinan tang; +Cc: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-27 3:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-27 3:37 "Debugging stubs for supporting tracepoint" xinan tang
2004-07-27 4:07 ` Ramana Radhakrishnan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox