From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5707 invoked by alias); 21 Oct 2009 14:22:54 -0000 Received: (qmail 5698 invoked by uid 22791); 21 Oct 2009 14:22:53 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Oct 2009 14:22:47 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 8F33913044; Wed, 21 Oct 2009 07:22:44 -0700 (PDT) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by mailhost2.vmware.com (Postfix) with ESMTP id 70DDA8E5C8; Wed, 21 Oct 2009 07:22:44 -0700 (PDT) Message-ID: <4ADF17B1.6030100@vmware.com> Date: Wed, 21 Oct 2009 14:26:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: sumanth CC: gdb Subject: Re: TRACE implementation References: <4ADD70C8.2040800@redpinesignals.com> <4ADDF8D4.4010100@vmware.com> <4ADE9702.20300@redpinesignals.com> In-Reply-To: <4ADE9702.20300@redpinesignals.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00330.txt.bz2 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. > Michael , Can you be a bit more brief on "published API" which > you mentioned in your last response. Sure. First, if you haven't seen this already, you probably want to look at it: http://sourceware.org/gdb/talks/esc-west-1999 There is a white paper, a slide presentation, and other documents. It's all old, but not obsolete, since very little additional development has been done since then. Second, the remote protocol messages that your stub will need to implement are specified here: http://sourceware.org/gdb/current/onlinedocs/gdb_37.html#SEC683 I should let you know that some folks at Code Sourcery have recently been doing some work with tracepoints. If you were interested in hiring someone to do the work for you on contract, either I or one of the other maintainers could probably put you in contact with someone privately. Good luck, Michael