Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14728] trace function not set, causing some Pdb commands to fail

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 5, 2012, 3:43 AM

Post #1 of 4 (56 views)
Permalink
[issue14728] trace function not set, causing some Pdb commands to fail

New submission from Xavier de Gaye <xdegaye [at] gmail>:

The issue 13183 raises the problem that when the trace function is not
set in the caller frame, the step command fails at a return statement.

This new issue raises the point that, for the same reason:

* the next, until and return statements fail also at a return
statement when the caller frame does not have a trace function

* when the user runs the up and down commands at any line in a
frame to select a new frame, then the next, until or return
commands fail when the selected frame does not have a trace
function

The attached patch fixes all those problems (by first removing the
changes made in bdb.py at issue 13183).

After the patch, the implementation ensures now that self.stopframe is
either None, or belongs to the stack frame in the interval
[self.botframe, self._curframe] and that it is set to self.botframe
when the debugging session terminates. This allows removing the while
loop in stop_here with an improvement in the performance of Pdb (since
stop_here may be called at each line, even when no breakpoint is set
in the function).

The patch applies to the default branch and includes 5 new test cases.
A patch for 2.7 will be submitted later.

----------
components: Library (Lib)
files: pdb.patch
keywords: patch
messages: 159985
nosy: xdegaye
priority: normal
severity: normal
status: open
title: trace function not set, causing some Pdb commands to fail
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file25459/pdb.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14728>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 5, 2012, 9:00 AM

Post #2 of 4 (51 views)
Permalink
[issue14728] trace function not set, causing some Pdb commands to fail [In reply to]

Xavier de Gaye <xdegaye [at] gmail> added the comment:

Uploaded pdb_default.patch that applies on the default branch with
minor changes to the initial pdb.patch.

----------
Added file: http://bugs.python.org/file25463/pdb_default.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14728>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 5, 2012, 9:01 AM

Post #3 of 4 (51 views)
Permalink
[issue14728] trace function not set, causing some Pdb commands to fail [In reply to]

Xavier de Gaye <xdegaye [at] gmail> added the comment:

Uploaded pdb_2.7.patch that applies on the 2.7 branch.

----------
Added file: http://bugs.python.org/file25464/pdb_2.7.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14728>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 11, 2012, 9:26 AM

Post #4 of 4 (45 views)
Permalink
[issue14728] trace function not set, causing some Pdb commands to fail [In reply to]

Terry J. Reedy <tjreedy [at] udel> added the comment:

Since this pdb issue is a continuation of #13183 and repeals a part of that issue's patch, I nosy'ed the contributors to that issue.

----------
nosy: +georg.brandl, loewis, neologix, orsenthil, terry.reedy
stage: -> patch review

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14728>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.