Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Hui Zhu <teawater@gmail.com>, Eli Zaretskii <eliz@gnu.org>
Subject: Re: [doc/tracepoint] Change *$esp@300 to *(unsigned char *)$esp@300.
Date: Fri, 16 Sep 2011 10:45:00 -0000	[thread overview]
Message-ID: <201109161144.11763.pedro@codesourcery.com> (raw)
In-Reply-To: <CANFwon3qCm9H8GY89d5MpiNkVwN=TCUhDA-6GWcqgiTs2dr6LQ@mail.gmail.com>

On Friday 16 September 2011 08:54:54, Hui Zhu wrote:
> I found that if want collect stack in tracepoint action like doc said
> will got error.
> 
> collect $rsp@512
> Left operand of `@' must be an object in memory.

The manual actually says: "something like *$esp@300",
which indeed doesn't work nowadays:

(gdb) maint agent *$rsp@300
Attempt to dereference a generic pointer.

(it's not a bug, it was made to error on purpose)

In any case, the patch is a good change, thanks!

-- 
Pedro Alves


      parent reply	other threads:[~2011-09-16 10:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-16  8:13 Hui Zhu
2011-09-16  8:57 ` Eli Zaretskii
2011-09-16  9:36   ` Hui Zhu
2011-09-16 10:45 ` Pedro Alves [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=201109161144.11763.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=teawater@gmail.com \
    /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