This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [BUG/tracepoint] agent code generate error when set a var of inferior to tv
- From: Hui Zhu <teawater at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 9 Aug 2011 17:07:30 +0800
- Subject: Re: [BUG/tracepoint] agent code generate error when set a var of inferior to tv
- References: <CANFwon1Yz4S3SDb5qbY4yp4enxwRpTfeXxKuVxqMj29CW4z8tA@mail.gmail.com> <m38vsbm8he.fsf@fleche.redhat.com>
I think I find a way to handle this issue.
Change it to:
teval $tmp=(uint64_t)a
Looks like it handle type convert is not very good. Wish somebody can
add a doc or fix it.
I will update the doc of KGTP.
Thanks,
Hui
On Thu, Jul 7, 2011 at 04:58, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>
>>> teval $tmp=a
>>> a is a var of inferior.
>>> The agent code that I got is:
>>> 2d000b
>>> 260003
>>> 1620
>>> 27
>
> I'm afraid I don't understand this report.
> Could you provide more details?
> Some source code might be helpful; or perhaps disassembly of the agent
> expression.
>
> Tom
>