Commit 5fe59f8
authored
PEP 523 introduced _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on
non-debug shared builds. This breaks the ability to use py-bt, py-up, and
a few other Python-specific gdb integrations.
This patch fixes the problem by only looking for _PyEval_EvalFrameDefault
frames.
test_gdb passes on both a debug and a non-debug build.
Original patch by Bruno "Polaco" Penteado.
1 parent ea57923 commit 5fe59f8
3 files changed
Lines changed: 18 additions & 9 deletions
File tree
- Misc
- NEWS.d/next/Tools-Demos
- Tools/gdb
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
| 1188 | + | |
1188 | 1189 | | |
1189 | 1190 | | |
1190 | 1191 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
1492 | 1494 | | |
1493 | 1495 | | |
1494 | 1496 | | |
1495 | | - | |
| 1497 | + | |
1496 | 1498 | | |
1497 | 1499 | | |
1498 | | - | |
| 1500 | + | |
1499 | 1501 | | |
1500 | 1502 | | |
1501 | 1503 | | |
1502 | 1504 | | |
1503 | 1505 | | |
1504 | | - | |
1505 | | - | |
1506 | | - | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
1507 | 1509 | | |
1508 | 1510 | | |
1509 | 1511 | | |
| |||
1512 | 1514 | | |
1513 | 1515 | | |
1514 | 1516 | | |
1515 | | - | |
| 1517 | + | |
1516 | 1518 | | |
1517 | 1519 | | |
1518 | 1520 | | |
| |||
1626 | 1628 | | |
1627 | 1629 | | |
1628 | 1630 | | |
1629 | | - | |
| 1631 | + | |
1630 | 1632 | | |
1631 | 1633 | | |
1632 | 1634 | | |
1633 | 1635 | | |
1634 | 1636 | | |
1635 | 1637 | | |
1636 | 1638 | | |
1637 | | - | |
| 1639 | + | |
1638 | 1640 | | |
1639 | 1641 | | |
1640 | 1642 | | |
| |||
1653 | 1655 | | |
1654 | 1656 | | |
1655 | 1657 | | |
1656 | | - | |
| 1658 | + | |
1657 | 1659 | | |
1658 | 1660 | | |
1659 | 1661 | | |
| |||
0 commit comments