public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Stan Shebs <stanshebs@earthlink.net>
To: gdb@sourceware.org
Subject: Re: What about add new commands "maintenance agent-breakpoint id expression" and "maintenance agent-eval-breakpoint id expression"
Date: Tue, 12 Jun 2012 23:36:00 -0000	[thread overview]
Message-ID: <4FD7D268.9090105@earthlink.net> (raw)
In-Reply-To: <4FD68A1A.2040600@mentor.com>

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.  But when we use tracepoint 
> or breakpoint with agent code, this address is from tracepoint or 
> breakpoint.
>
> What about add new commands "maintenance agent-breakpoint id 
> expression" and "maintenance agent-eval-breakpoint id expression"?  
> Then we can get 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.  Also, an optional 
hyphen-argument like "-at <linespec>" 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.  (This 
distinction confused me at least once a while back - the bug was in 
non-agent collect action.)

Stan
stan@codesourcery.com

  parent reply	other threads:[~2012-06-12 23:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-12  0:15 Hui Zhu
2012-06-12  2:03 ` Yao Qi
2012-06-12 11:42   ` Hui Zhu
2012-06-12 13:15     ` Yao Qi
2012-06-12 23:36 ` Stan Shebs [this message]
2012-06-20 10:08   ` Hui Zhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FD7D268.9090105@earthlink.net \
    --to=stanshebs@earthlink.net \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).