From: Hui Zhu <teawater@gmail.com>
To: Stan Shebs <stanshebs@earthlink.net>
Cc: gdb@sourceware.org
Subject: Re: What about add new commands "maintenance agent-breakpoint id expression" and "maintenance agent-eval-breakpoint id expression"
Date: Wed, 20 Jun 2012 10:08:00 -0000 [thread overview]
Message-ID: <CANFwon2584pT6T5bF4n_KVGqXooJ9ofAh6=kdVpcW3k_C4MYqg@mail.gmail.com> (raw)
In-Reply-To: <4FD7D268.9090105@earthlink.net>
On Wed, Jun 13, 2012 at 7:36 AM, Stan Shebs <stanshebs@earthlink.net> 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. 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
>
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
prev parent reply other threads:[~2012-06-20 10:08 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
2012-06-20 10:08 ` Hui Zhu [this message]
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='CANFwon2584pT6T5bF4n_KVGqXooJ9ofAh6=kdVpcW3k_C4MYqg@mail.gmail.com' \
--to=teawater@gmail.com \
--cc=gdb@sourceware.org \
--cc=stanshebs@earthlink.net \
/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