[issue9919] gdbinit lineno result is one line in excess

2010-11-02 Thread qpatata
qpatata added the comment: I'm sorry, I've not explained correctly. I'm wondering if the addition of the \n is ok or not, taken into account that it breaks the format of the "pyframe" macro output. It could be better to keep the older version (withou

[issue9919] gdbinit lineno result is one line in excess

2010-11-01 Thread qpatata
qpatata added the comment: Hi, Thanks for the fix. I'm wondering if it is valid to add a "\n" in the "lineno" print. This macro is called by other ones, like pyframe, that have their own format specifiers. Kind regards. -- _

[issue9919] gdbinit lineno result is one line in excess

2010-09-23 Thread qpatata
qpatata added the comment: Well, me also I'm not expert in gdb. Solution looks nice and previous testcase now gives the correct answer. Thanks a lot for your help. -- ___ Python tracker <http://bugs.python.org/i

[issue9919] gdbinit lineno result is one line in excess

2010-09-22 Thread qpatata
qpatata added the comment: Hello, Thanks for your colaboration. Starting by the following python file, called "prueba.py": > cat prueba.py import time def bar(): time.sleep(10); print "hello"; def foo(): while True: bar(); foo(); Open a gdb se

[issue9919] gdbinit lineno result is one line in excess

2010-09-22 Thread qpatata
New submission from qpatata : Thanks a lot to all python teams for your excel.lent work. When latest version of gdbinit macros is used to debug with gdb a python 2.4 session, the result from lineno macro seems one line more than the correct one. If we compare the gdb macro: define lineno