From: Yao Qi <yao@codesourcery.com>
To: David Taylor <dtaylor@emc.com>, <gdb@sourceware.org>
Subject: Re: gdb remote protocol breakpoints (Z0 command)
Date: Fri, 20 Jun 2014 05:41:00 -0000 [thread overview]
Message-ID: <53A3C91D.7010304@codesourcery.com> (raw)
In-Reply-To: <20417.1403189074@usendtaylorx2l>
On 06/19/2014 10:44 PM, David Taylor wrote:
> There are many things you might want to do at a breakpoint that lack
> bytecode operators. Just for starters,
>
> . there is no bytecode operator for setting memory
>
> . there is no bytecode operator for setting registers
It is fine to extend bytecode for setting memory and registers...
>
> . there is no bytecode operator for calling arbitrary functions
... but calling functions is too complex to be operated by bytecode.
Each bytecode operator just does simple/primitive operation. If we've
already had bytecode for setting memory and registers, GDB may generate
a sequence of bytecode (including setting memory and registers) to do
function call. However, I am not very sure.
>
> . there is no 'continue' option (as in: ``after performing the
> requested commands, continue the current thread'')
>
> There are other capabilities that I would like as well, but without the
> four mentioned above, I don't consider it very useful at all.
>
> Has anyone else thought about these issuses and possibly sketched out
> extensions to allow such capabilities?
>
> [The 'continue' command would likely be an extension to the Z0 command,
> the others would likely be extensions to the bytecode language.]
We have a kind of breakpoint, dprintf, which is a breakpoint plus
printing and a 'continue' command at the end. It has some flaws, but
closed to your needs.
If you don't require much interactive operations, tracepoint is a better
choice, IMO.
--
Yao (é½å°§)
next prev parent reply other threads:[~2014-06-20 5:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 14:44 David Taylor
2014-06-19 17:24 ` Tom Tromey
2014-06-23 13:14 ` David Taylor
2014-06-20 5:41 ` Yao Qi [this message]
2014-06-23 13:45 ` David Taylor
2014-06-24 0:53 ` Frank Ch. Eigler
2014-06-21 0:23 ` Frank Ch. Eigler
2014-06-23 13:29 ` David Taylor
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=53A3C91D.7010304@codesourcery.com \
--to=yao@codesourcery.com \
--cc=dtaylor@emc.com \
--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