This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Doc]tracepoint: change *$esp@300 to *(unsigned char *)$esp@300


Hui Zhu wrote:
On Tue, Aug 24, 2010 at 11:07, Eli Zaretskii <eliz@gnu.org> wrote:
From: Hui Zhu <teawater@gmail.com>
Date: Tue, 24 Aug 2010 10:10:19 +0800
Cc: Eli Zaretskii <eliz@gnu.org>

But *(unsigned char *)$esp@300 can work:
What about *(int *)$esp@300 ?


It will make trace collect 1200. If "unsigned char" is too big, what about *(char *)$esp@300?

But 300 words might be good too. What about:


+bytes from the stack pointer with something like @code{*
(char *)$esp@@300}, or 300 words with @code{*(int *)$esp@@300}.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]