From: David Taylor <dtaylor@emc.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: possible gdb agent expression extension
Date: Mon, 25 Aug 2014 16:30:00 -0000 [thread overview]
Message-ID: <9155.1408984202@usendtaylorx2l> (raw)
In-Reply-To: <83lhqclibe.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Mon, 25 Aug 2014 10:03:03 -0400
> > From: David Taylor <dtaylor@emc.com>
> >
> > > That @result{} at the end, with nothing after it, does look strange:
> > > what "result" does this give?
> >
> > I was largely copying snippets I found nearby in the agentexpr.texi
> > file. They are of the form:
> >
> > <agent-opcode> <additional items in the agent byte stream> :
> > <items on the stack at start of operation> ==>
> > <items on the stack at end of operation>
>
> Right, but in your case there's nothing after ==>, which is
> unexpected.
>
> Thanks.
Right. Like
if_goto (0x20) offset : a ==>
goto (0x21) offset : ==>
trace (0x0c) : addr size ==>
tracenz (0x2f) : addr size ==>
printf (0x34) numargs string : ==>
end (0x27) : ==>
it means that inputs -- if any -- are consumed; nothing is pushed on the
stack.
[Aside: the documentation is missing the ':' on tracenz and printf. For
that matter, documentation for printf is missing some other stuff, too.]
next prev parent reply other threads:[~2014-08-25 16:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 14:39 David Taylor
2014-08-22 22:08 ` David Taylor
2014-08-23 7:32 ` Eli Zaretskii
2014-08-25 14:03 ` David Taylor
2014-08-25 15:06 ` Eli Zaretskii
2014-08-25 16:30 ` David Taylor [this message]
2014-08-25 16:44 ` Eli Zaretskii
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=9155.1408984202@usendtaylorx2l \
--to=dtaylor@emc.com \
--cc=eliz@gnu.org \
--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