This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: TRACE implementation
On Wed, 21 Oct 2009, Michael Snyder wrote:
> sumanth wrote:
>> Hi ,
>>
>> I am talking about "gdb tracepoints" only. I am asking for "How
>> can I implement them in GDB ?"
>
> Great. Thanks for the clarification.
> Partial answer: you don't have to implement them in gdb.
> They're already implemented in gdb.
>
>> means, where I can start with. Heard something about remote
>> stubs
>
> Yes, that's correct. GDB already knows how to tell a stub
> to collect trace data. You need to implement a stub that
> understands the trace commands that gdb will send to it.
One implementation for GDB 6.3-6.6 is available at
ftp://dslab.lzu.edu.cn/pub/gdb_tracepoints
this is the stubs in gdbserver and a few (bug)fixes in the core
gdb routines that were needed.
thx!
hofrat