This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Tracepoints functionality for local targets
- From: Michael Snyder <msnyder at specifix dot com>
- To: Lokesh Gupta <lokesh dot gupta at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 26 Feb 2008 10:38:49 -0800
- Subject: Re: Tracepoints functionality for local targets
- References: <21b011a40802260027r596c2c0bt96339538b8e5cc92@mail.gmail.com>
On Tue, 2008-02-26 at 09:27 +0100, Lokesh Gupta wrote:
> Hello,
>
> Is there some work planned for the working of the tracepoints for
> local targets? While going through the source code, I realized that
> currently this facility is only for remote targets.
> In case nothing is planned, can I have some guidance on how to achieve
> this. I think that it could be a good enhancement to debug
> multi-threaded programs on the local host.
You could define it as two challenges to be addressed:
1) How to instrument the code and collect the data on a
native system, and
2) the fact that the gdb side is only written to handle
the remote target.
I would certainly love to see a native implementation
happen, and it would be fair to say that #2 is my fault,
so if somebody were to seriously undertake solving #1,
I would undertake to at least help work on #2...
Michael