public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/10680] New: Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function'
@ 2009-09-21 15:10 jason dot orendorff at gmail dot com
2009-09-21 18:33 ` [Bug python/10680] " tromey at redhat dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jason dot orendorff at gmail dot com @ 2009-09-21 15:10 UTC (permalink / raw)
To: gdb-prs
import gdb
class Yes(gdb.Function):
""" Always returns true. """
def __init__(self):
gdb.Function.__init__(self, "yes")
def invoke(self):
return True
Yes()
(gdb) python import test
(gdb) p $yes()
$7 = true
(gdb) p $yes() || $yes()
Expression of type other than "Function returning ..." used as function
(gdb) p $yes() && $yes()
Expression of type other than "Function returning ..." used as function
(gdb) p $yes() ^ $yes()
$8 = false
(gdb) p $yes() == $yes()
$9 = true
(gdb) p $yes() and $yes()
Expression of type other than "Function returning ..." used as function
(gdb) p $yes() & $yes()
$10 = true
(gdb) p $yes() ? $yes() : $yes()
$11 = true
--
Summary: Python extension functions do not mix with && or ||:
'Expression of type other than "Function returning ..."
used as function'
Product: gdb
Version: archer
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned at sourceware dot org
ReportedBy: jason dot orendorff at gmail dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10680
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/10680] Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function'
2009-09-21 15:10 [Bug python/10680] New: Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function' jason dot orendorff at gmail dot com
@ 2009-09-21 18:33 ` tromey at redhat dot com
2009-09-21 20:26 ` tromey at redhat dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2009-09-21 18:33 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2009-09-21 18:33 -------
The bug is that we don't properly handle EVAL_AVOID_SIDE_EFFECTS
for internal functions.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2009-09-21 18:33:27
date| |
http://sourceware.org/bugzilla/show_bug.cgi?id=10680
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/10680] Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function'
2009-09-21 15:10 [Bug python/10680] New: Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function' jason dot orendorff at gmail dot com
2009-09-21 18:33 ` [Bug python/10680] " tromey at redhat dot com
@ 2009-09-21 20:26 ` tromey at redhat dot com
2009-09-22 17:39 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2009-09-21 20:26 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2009-09-21 20:26 -------
Testing a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware dot|tromey at redhat dot com
|org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-09-21 18:33:27 |2009-09-21 20:26:13
date| |
http://sourceware.org/bugzilla/show_bug.cgi?id=10680
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/10680] Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function'
2009-09-21 15:10 [Bug python/10680] New: Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function' jason dot orendorff at gmail dot com
2009-09-21 18:33 ` [Bug python/10680] " tromey at redhat dot com
2009-09-21 20:26 ` tromey at redhat dot com
@ 2009-09-22 17:39 ` cvs-commit at gcc dot gnu dot org
2009-09-22 17:40 ` cvs-commit at gcc dot gnu dot org
2009-09-22 17:40 ` tromey at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2009-09-22 17:39 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2009-09-22 17:39 -------
Subject: Bug 10680
CVSROOT: /cvs/src
Module name: src
Branch: gdb_7_0-branch
Changes by: tromey@sourceware.org 2009-09-22 17:38:30
Modified files:
gdb : ChangeLog eval.c
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.python: py-function.exp
Log message:
gdb
PR python/10680:
* eval.c (evaluate_subexp_standard) <do_call_it>: Handle internal
functions in EVAL_AVOID_SIDE_EFFECTS case.
gdb/testsuite
* gdb.python/py-function.exp: Add regression tests.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_0-branch&r1=1.10874.2.15&r2=1.10874.2.16
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/eval.c.diff?cvsroot=src&only_with_tag=gdb_7_0-branch&r1=1.119&r2=1.119.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_0-branch&r1=1.1960.2.2&r2=1.1960.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-function.exp.diff?cvsroot=src&only_with_tag=gdb_7_0-branch&r1=1.1&r2=1.1.2.1
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10680
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/10680] Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function'
2009-09-21 15:10 [Bug python/10680] New: Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function' jason dot orendorff at gmail dot com
` (2 preceding siblings ...)
2009-09-22 17:39 ` cvs-commit at gcc dot gnu dot org
@ 2009-09-22 17:40 ` cvs-commit at gcc dot gnu dot org
2009-09-22 17:40 ` tromey at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2009-09-22 17:40 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2009-09-22 17:40 -------
Subject: Bug 10680
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2009-09-22 17:39:54
Modified files:
gdb : ChangeLog eval.c
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.python: py-function.exp
Log message:
gdb
PR python/10680:
* eval.c (evaluate_subexp_standard) <do_call_it>: Handle internal
functions in EVAL_AVOID_SIDE_EFFECTS case.
gdb/testsuite
* gdb.python/py-function.exp: Add regression tests.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.10897&r2=1.10898
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/eval.c.diff?cvsroot=src&r1=1.119&r2=1.120
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1965&r2=1.1966
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-function.exp.diff?cvsroot=src&r1=1.1&r2=1.2
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10680
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/10680] Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function'
2009-09-21 15:10 [Bug python/10680] New: Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function' jason dot orendorff at gmail dot com
` (3 preceding siblings ...)
2009-09-22 17:40 ` cvs-commit at gcc dot gnu dot org
@ 2009-09-22 17:40 ` tromey at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2009-09-22 17:40 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2009-09-22 17:40 -------
I've checked in a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|6.8 |6.9
http://sourceware.org/bugzilla/show_bug.cgi?id=10680
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-22 17:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21 15:10 [Bug python/10680] New: Python extension functions do not mix with && or ||: 'Expression of type other than "Function returning ..." used as function' jason dot orendorff at gmail dot com
2009-09-21 18:33 ` [Bug python/10680] " tromey at redhat dot com
2009-09-21 20:26 ` tromey at redhat dot com
2009-09-22 17:39 ` cvs-commit at gcc dot gnu dot org
2009-09-22 17:40 ` cvs-commit at gcc dot gnu dot org
2009-09-22 17:40 ` tromey at redhat dot com
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).