public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* [BUG]Something wrong with evaluate
@ 2011-05-21 16:09 Hui Zhu
  2011-05-21 16:19 ` Jan Kratochvil
  0 siblings, 1 reply; 6+ messages in thread
From: Hui Zhu @ 2011-05-21 16:09 UTC (permalink / raw)
  To: gdb

gdb ./vmlinux
GNU gdb (GDB) 7.3.50.20110521-cvs
(gdb) p 123*4
GDB does not (yet) know how to evaluate that kind of expression


/usr/bin/gdb ./vmlinux
GNU gdb (GDB) 7.2-ubuntu
(gdb) p 123*4
$1 = 492


What is happen?

Thanks,
Hui

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [BUG]Something wrong with evaluate
  2011-05-21 16:09 [BUG]Something wrong with evaluate Hui Zhu
@ 2011-05-21 16:19 ` Jan Kratochvil
  2011-05-21 16:27   ` Hui Zhu
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kratochvil @ 2011-05-21 16:19 UTC (permalink / raw)
  To: Hui Zhu; +Cc: gdb

On Sat, 21 May 2011 18:08:13 +0200, Hui Zhu wrote:
> GDB does not (yet) know how to evaluate that kind of expression

gdb: gdb forgot how to do arithmetic
https://bugzilla.redhat.com/show_bug.cgi?id=635508
->
gcc: -O1 wrong-code by cmove
https://bugzilla.redhat.com/show_bug.cgi?id=634757
->
gcc: [4.5/4.6 Regression] -O1 wrong-code by cmove
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45695


Regards,
Jan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [BUG]Something wrong with evaluate
  2011-05-21 16:19 ` Jan Kratochvil
@ 2011-05-21 16:27   ` Hui Zhu
  2011-05-21 16:31     ` Jan Kratochvil
  0 siblings, 1 reply; 6+ messages in thread
From: Hui Zhu @ 2011-05-21 16:27 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb

That is a gcc bug?

Thanks,
Hui

On Sun, May 22, 2011 at 00:18, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
> On Sat, 21 May 2011 18:08:13 +0200, Hui Zhu wrote:
>> GDB does not (yet) know how to evaluate that kind of expression
>
> gdb: gdb forgot how to do arithmetic
> https://bugzilla.redhat.com/show_bug.cgi?id=635508
> ->
> gcc: -O1 wrong-code by cmove
> https://bugzilla.redhat.com/show_bug.cgi?id=634757
> ->
> gcc: [4.5/4.6 Regression] -O1 wrong-code by cmove
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45695
>
>
> Regards,
> Jan
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [BUG]Something wrong with evaluate
  2011-05-21 16:27   ` Hui Zhu
@ 2011-05-21 16:31     ` Jan Kratochvil
  2011-05-21 16:34       ` Hui Zhu
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kratochvil @ 2011-05-21 16:31 UTC (permalink / raw)
  To: Hui Zhu; +Cc: gdb

On Sat, 21 May 2011 18:26:10 +0200, Hui Zhu wrote:
> That is a gcc bug?

Yes, at least I got this message due to a GCC Bug already fixed some time ago,
one can find it in the Bugs.  Unaware if the GCC Bug is gets exploited by
every GDB version or just by some specific GDB versions.

Do you have the problem reproducible if you (re)build that GDB with -O0?

Sure it can be also a completely different problem but I doubt so.


Regards,
Jan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [BUG]Something wrong with evaluate
  2011-05-21 16:31     ` Jan Kratochvil
@ 2011-05-21 16:34       ` Hui Zhu
  2011-05-22  2:42         ` Hui Zhu
  0 siblings, 1 reply; 6+ messages in thread
From: Hui Zhu @ 2011-05-21 16:34 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb

On Sun, May 22, 2011 at 00:31, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
> On Sat, 21 May 2011 18:26:10 +0200, Hui Zhu wrote:
>> That is a gcc bug?
>
> Yes, at least I got this message due to a GCC Bug already fixed some time ago,
> one can find it in the Bugs.  Unaware if the GCC Bug is gets exploited by
> every GDB version or just by some specific GDB versions.
>
> Do you have the problem reproducible if you (re)build that GDB with -O0?
>
> Sure it can be also a completely different problem but I doubt so.
>
>
> Regards,
> Jan
>

Hi Jan,

My part -O0 gdb is OK.  This is a gcc bug.  I just update my gcc to
4.5.  I will report it to ubuntu.
Thanks for your help.

Best,
Hui

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [BUG]Something wrong with evaluate
  2011-05-21 16:34       ` Hui Zhu
@ 2011-05-22  2:42         ` Hui Zhu
  0 siblings, 0 replies; 6+ messages in thread
From: Hui Zhu @ 2011-05-22  2:42 UTC (permalink / raw)
  To: gdb; +Cc: Jan Kratochvil

Just a small remind.

Tracepoint action teval is affected by this issue too.

Thanks,
Hui

On Sun, May 22, 2011 at 00:33, Hui Zhu <teawater@gmail.com> wrote:
> On Sun, May 22, 2011 at 00:31, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
>> On Sat, 21 May 2011 18:26:10 +0200, Hui Zhu wrote:
>>> That is a gcc bug?
>>
>> Yes, at least I got this message due to a GCC Bug already fixed some time ago,
>> one can find it in the Bugs.  Unaware if the GCC Bug is gets exploited by
>> every GDB version or just by some specific GDB versions.
>>
>> Do you have the problem reproducible if you (re)build that GDB with -O0?
>>
>> Sure it can be also a completely different problem but I doubt so.
>>
>>
>> Regards,
>> Jan
>>
>
> Hi Jan,
>
> My part -O0 gdb is OK.  This is a gcc bug.  I just update my gcc to
> 4.5.  I will report it to ubuntu.
> Thanks for your help.
>
> Best,
> Hui
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-22  2:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-21 16:09 [BUG]Something wrong with evaluate Hui Zhu
2011-05-21 16:19 ` Jan Kratochvil
2011-05-21 16:27   ` Hui Zhu
2011-05-21 16:31     ` Jan Kratochvil
2011-05-21 16:34       ` Hui Zhu
2011-05-22  2:42         ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).