Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: David Taylor <dtaylor@emc.com>
To: gdb@sourceware.org
Subject: gdb remote protocol breakpoints (Z0 command)
Date: Thu, 19 Jun 2014 14:44:00 -0000	[thread overview]
Message-ID: <20417.1403189074@usendtaylorx2l> (raw)

In the manual the Z0 (insert memory breakpoint) command is summarized
thusly:

    Z0,addr,kind[;cond_list...][;cmds:persist,cmd_list...]

Now, cond_list 'is comprised of a series of expressions, concatenated
without separators.  Each expression has the following form:

    X len,expr

len is the length of the bytecode expression and expr is the actual
conditional expression in bytecode form.

That part is fine.  Most of the time when I want a conditional
breakpoint, the expression is expressible in bytecode form.  (In fact,
while I won't attest that they've always been so expressible, I don't
recall any that weren't so expressible).

But, it then goes on to describe cmd_list in similar terms.

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

    . there is no bytecode operator for calling arbitrary functions

    . 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.]

If we (EMC) were to do something in our gdb and/or remote stub, I would
want it to be compatible with what others are doing / thinking of doing.

Thanks.

David
--
David Taylor
dtaylor at emc dot com


             reply	other threads:[~2014-06-19 14:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-19 14:44 David Taylor [this message]
2014-06-19 17:24 ` Tom Tromey
2014-06-23 13:14   ` David Taylor
2014-06-20  5:41 ` Yao Qi
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=20417.1403189074@usendtaylorx2l \
    --to=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