[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-21 Thread Nick Coghlan
Nick Coghlan added the comment: (Oops, thought I had reverted those accidental edits by reloading the page. I guess not) -- keywords: +patch -64bit ___ Python tracker ___ __

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-21 Thread Nick Coghlan
Nick Coghlan added the comment: Remaining problem recorded as issue 8482 -- components: +Library (Lib), Tests keywords: +64bit -patch versions: +Python 2.7 ___ Python tracker ___

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Dave Malcolm
Dave Malcolm added the comment: > Fixed: r80289 (trunk), r80290 (py3k). I will check the buildbots :-) Please forgive my pedantry, but these appear to be off-by-one; the commits appear to have been: r80288 (trunk), r80289 (py3k) -- ___ Python tracke

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: Fixed: r80289 (trunk), r80290 (py3k). I will check the buildbots :-) Nick: Can you open a new issue for your last issue? I will open a new issue for my suggestions. I also realized that gdb is missing in the documentation! -- resolution: -> fixed st

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Dave Malcolm
Dave Malcolm added the comment: In msg103780 Martin v. Löwis wrote: > Ah, ok. That was the problem indeed. The patch actually works fine. Good to hear. Thanks for tracking this down and clarifying it. As I understand it, the current status of this bug is that file17000 fixes the reported issu

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, yep - "rm python-gdb.py", "make" cleared up those remaining ".function" failures. The makefile could probably use a Modules/Setup.dist vs Modules/Setup style warning when libpython.py is newer than python-gdb.py to help prevent anyone else getting caught by

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Do you have an old python-gdb.py file in your Python root directory? Ah, ok. That was the problem indeed. The patch actually works fine. -- ___ Python tracker _

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: I don't understand because after applying the patch, there is not occurence of ".function" in Tools/gdb/libpython.py nor Lib/test/test_gdb.py. Do you have an old python-gdb.py file in your Python root directory? I noticed that I had such file in my python tru

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: The patch does make a slight difference for me - I go from 14 failures down to 8 failures and 6 skipped. The post-patch failures appear to be the same ones Martin is getting: "test_gdb.get_stack_trace" is regularly failing due to the lack of "gdb.Frame.functio

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Yes, I did try with version 3. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor
STINNER Victor added the comment: > in any case, I can report that it doesn't fix *this* issue Did you applied the patch version 3? The first version didn't fixed is_evalframeex(), but the version 3 does. Could you retry with the last patch (version 3)? -- __

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm attaching the full output. It's the same as the one in the original report (msg103442) still. -- Added file: http://bugs.python.org/file17011/test_gdb.txt ___ Python tracker

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16998/test_gdb-2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16997/add-conditions-for-gdb.Frame.select-to-trunk.patch ___ Python tracker ___ _

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: > I'm not sure I understand the issue that this patch is supposed > to fix It should fix all test_gdb errors :-) > in any case, I can report that it doesn't fix *this* issue. > I'm still getting the very same failures after applying the patch. The "'gdb.Fra

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Folks, can we please focus at one issue at a time? I'm not sure I understand the issue that this patch is supposed to fix; in any case, I can report that it doesn't fix *this* issue. I'm still getting the very same failures after applying the patch. Victor,

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: test_gdb pass with add-conditions-for-gdb.Frame.select-to-trunk-003.patch. In a new patch, or maybe a last version of the add- patch, could you move all "main" code at the end? I found these instructions: # register Python pretty printer register (gdb

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: Sorry about that. Here's an updated version of the patch, combining my work with Victor's. -- Added file: http://bugs.python.org/file17000/add-conditions-for-gdb.Frame.select-to-trunk-003.patch ___ Python tracker

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: > Attached patch is based on add-conditions-for-gdb.Frame.select-to- > trunk.patch and fix described problems. Using test_gdb-2.patch, test_gdb > pass without any error on my Debian Sid (gdb 7.1). The patch conditionalizes each test within StackNavigationTests,

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: > (A) that we shouldn't use gdb.Frame.function.name(), ... > that this was fixed in trunk in r80156. This command is not correct: it still calls .function() method: def is_evalframeex(self): '''Is this a PyEval_EvalFrameEx frame?''' if self

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: Assigning to loewis for review -- assignee: dmalcolm -> loewis stage: -> patch review ___ Python tracker ___

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: If I'm reading this bug correctly, there are two issues here: (A) that we shouldn't use gdb.Frame.function.name(), and should instead use gdb.Frame.name(). I believe this is a duplicate of issue 8279, and that this was fixed in trunk in r80156.It hasn't

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: Victor, please leave that to David. He will fix it. -- ___ Python tracker ___ ___ Python-bugs-list

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-17 Thread STINNER Victor
STINNER Victor added the comment: The commit creating methods "function", "select" were added the 24th february 2010, whereas gdb 7.1 was released around the 18th february 2010. http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-frame.c?cvsroot=src I guess that the author (Dave Malcolm

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-17 Thread STINNER Victor
STINNER Victor added the comment: According to documentation of the Python API of gdb, a frame has a function method. I read gdb 7.0, 7.0.1 and 7.1 (downloaded from http://ftp.gnu.org/gnu/gdb): there is not "function" method, but a "name" method. On my Debiand Sid (gdb 7.1), gdb has the name

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-17 Thread STINNER Victor
STINNER Victor added the comment: See my msg103440 of issue #8279. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-17 Thread Martin v . Löwis
New submission from Martin v. Löwis : I get a number of failures in test_gdb with gdb 7.0.1 about gdb.Frame, e.g. FAIL: test_basic_command (test.test_gdb.PyListTests) Verify that the "py-list" command works