pdbtrack chokes on stack frames on module level

Bug #505295 reported by Georg Brandl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
High
Andreas Roehler

Bug Description

pdb's stack entry output for module level code looks like this:

> /home/gbr/devel/sphinx-domains/tests/util.py(22)<module>()

However, the pdbtrack regex to recognize such lines is:

"^> \\(.*\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_]+\\)()"

(in defconst py-pdbtrack-stack-entry-regexp). It should be something like

"^> \\(.*\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_<>]+\\)()"

to cover this case.

Related branches

Barry Warsaw (barry)
Changed in python-mode:
milestone: none → 5.1.1
assignee: nobody → Barry Warsaw (barry)
importance: Undecided → High
Barry Warsaw (barry)
Changed in python-mode:
assignee: Barry Warsaw (barry) → nobody
assignee: nobody → Andreas Roehler (a-roehler)
Revision history for this message
Andreas Roehler (a-roehler) wrote :

Hi Barry,

would take the proposed change as is.
Works fine here.
Seems identic to py-pdbtrack-stack-entry-regexp in use by python.el BTW.

So I'm going to create a new branch and propose for merge (?)

Andreas

Revision history for this message
Barry Warsaw (barry) wrote :

Hi Andreas. If you feel confident about the change, JFDI. :) I will test the change when you commit it.

Barry Warsaw (barry)
Changed in python-mode:
status: New → Fix Committed
Barry Warsaw (barry)
Changed in python-mode:
milestone: 5.1.1 → 5.2
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.