From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4049 invoked by alias); 20 Jun 2012 10:08:59 -0000 Received: (qmail 4031 invoked by uid 22791); 20 Jun 2012 10:08:57 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-we0-f169.google.com (HELO mail-we0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jun 2012 10:08:45 +0000 Received: by wefh52 with SMTP id h52so6524132wef.0 for ; Wed, 20 Jun 2012 03:08:44 -0700 (PDT) Received: by 10.180.98.39 with SMTP id ef7mr10713160wib.21.1340186924037; Wed, 20 Jun 2012 03:08:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.122.193 with HTTP; Wed, 20 Jun 2012 03:08:03 -0700 (PDT) In-Reply-To: <4FD7D268.9090105@earthlink.net> References: <4FD68A1A.2040600@mentor.com> <4FD7D268.9090105@earthlink.net> From: Hui Zhu Date: Wed, 20 Jun 2012 10:08:00 -0000 Message-ID: Subject: Re: What about add new commands "maintenance agent-breakpoint id expression" and "maintenance agent-eval-breakpoint id expression" To: Stan Shebs Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2012-06/txt/msg00076.txt.bz2 On Wed, Jun 13, 2012 at 7:36 AM, Stan Shebs wrote: > On 6/11/12 5:15 PM, Hui Zhu wrote: >> >> Hi guys, >> >> The "maintenance agent" and "maintenance agent-eval" are for translate an >> expression into remote agent bytecode. >> Both of them got address info from frame. =A0But when we use tracepoint = or >> breakpoint with agent code, this address is from tracepoint or breakpoin= t. >> >> What about add new commands "maintenance agent-breakpoint id expression" >> and "maintenance agent-eval-breakpoint id expression"? =A0Then we can ge= t the >> agent code for breakpoint or tracepoint directly. > > > I could see something like that being useful - instead of breakpoint id I > would suggest having it take a linespec, so you don't have to create a > tracepoint just to see what the bytecodes would be. =A0Also, an optional > hyphen-argument like "-at " would save defining new maintenance > subcommands. > > One caveat though - not all collect actions translate into agent > expressions, so the user could be misled into thinking that the target was > running bytecode instead of doing direct collection. =A0(This distinction > confused me at least once a while back - the bug was in non-agent collect > action.) > > Stan > stan@codesourcery.com > I think the guy that use these commands must be the developer of GDB or the target. I have a strange suggestion that remove these two commands from the gdb.texinfo. :) I will post the patch for add "-at" to these commands later. Best, Hui