From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17225 invoked by alias); 24 Jun 2014 00:53:06 -0000 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 Received: (qmail 17211 invoked by uid 89); 24 Jun 2014 00:53:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 24 Jun 2014 00:53:04 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5O0qvwq031187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 Jun 2014 20:52:57 -0400 Received: from fche.csb (vpn-56-123.rdu2.redhat.com [10.10.56.123]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5O0qv7W013833; Mon, 23 Jun 2014 20:52:57 -0400 Received: by fche.csb (Postfix, from userid 2569) id A73A6581C7; Mon, 23 Jun 2014 20:52:56 -0400 (EDT) To: David Taylor Cc: Yao Qi , "gdb@sourceware.org" Subject: Re: gdb remote protocol breakpoints (Z0 command) References: <20417.1403189074@usendtaylorx2l> <53A3C91D.7010304@codesourcery.com> <2184.1403531084@usendtaylorx2l> From: fche@redhat.com (Frank Ch. Eigler) Date: Tue, 24 Jun 2014 00:53:00 -0000 In-Reply-To: <2184.1403531084@usendtaylorx2l> (David Taylor's message of "Mon, 23 Jun 2014 09:44:44 -0400") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2014-06/txt/msg00072.txt.bz2 dtaylor wrote: > [...] > Both our old and our new stubs support tracepoints; our use of > tracepoints preceeds GDB support for tracepoints. I think I remember those early days. > I've used it for things like setting a breakpoint on a > troublesome functions and then creating a command list like -- > > print that the function was called and its arguments; for > structures, possibly print key elements of the structure > [...] > print a backtrace > [...] > set $retval = () > [...] Uploading enough intelligence & information into the gdbstub to perform inferior function calls, or especially backtraces, is going to be a tough hill to climb. > re-enable breakpoint > > So, we end up with the function arguments, the return value, and > selected other interesting information each time the function is called. (Hey, you guys need to try out systemtap. :-) - FChE