Re: [doc/tracepoint] Change *$esp@300 to *(unsigned char *)$esp@300.

Pedro Alves
2011-09-16T10:44:40Z

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