Nick Coghlan <[email protected]> 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 that.
I still get one failure after that, even after a "make clean", "make",
"./python -m test.regrtest -v test_gdb". Given the "unable to read Python frame
information" embedded in the result on my machine (64-bit Kubuntu 9.10), it is
probably related to the current issue.
The remaining failure:
======================================================================
FAIL: test_basic_command (test.test_gdb.PyBtTests)
Verify that the "py-bt" command works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ncoghlan/devel/python/Lib/test/test_gdb.py", line 638, in
test_basic_command
''')
File "/home/ncoghlan/devel/python/Lib/test/test_gdb.py", line 158, in
assertMultilineMatches
msg='%r did not match %r' % (actual, pattern))
AssertionError: 'Breakpoint 1 at 0x453510: file Objects/object.c, line
330.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1,
PyObject_Print (op=42, fp=0x7ffff7532780, flags=1)\n at
Objects/object.c:330\n330\t\treturn internal_print(op, fp, flags, 0);\n#3 Frame
0x808680, for file /home/ncoghlan/devel/python/Lib/test/gdb_sample.py, line 10,
in baz (args=(1, 2, 3))\n print(42)\n#7 (unable to read python frame
information)\n#10 Frame 0x81a220, for file
/home/ncoghlan/devel/python/Lib/test/gdb_sample.py, line 7, in bar (a=1, b=2,
c=3)\n baz(a, b, c)\n#13 Frame 0x807f00, for file
/home/ncoghlan/devel/python/Lib/test/gdb_sample.py, line 4, in foo (a=1, b=2,
c=3)\n bar(a, b, c)\n' did not match '^.*\n#[0-9]+ Frame 0x[0-9a-f]+, for
file .*gdb_sample.py, line 7, in bar \\(a=1, b=2, c=3\\)\n baz\\(a, b,
c\\)\n#[0-9]+ Frame 0x[0-9a-f]+, for file .*gdb_sample.py, line 4, in foo
\\(a=1, b=2, c=3\\)\n bar\\(a, b, c\\)\n#[0-9]+ Frame 0x[0-9a-f]+, for file
.*g
db_sample.py, line 12, in <module> \\(\\)\nfoo\\(1, 2, 3\\)\n'
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8437>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com