Message365990
Debuggers are allowed to change the line number of the currently executing frame. Regardless of whether this is sensible or not, the current implementation rather fragile.
The code makes various assumptions about the layout of the bytecode that may not be true in the future, and I suspect, are not true now.
We should use a more brute-force approach of computing the exception stack for the whole function and then searching for a safe place to jump to. This is not only more robust it allows more jumps.
For example, it is safe to jump from one exception handler to another.
It may not be sensible, but it is safe. |
|
Date |
User |
Action |
Args |
2020-04-08 15:47:35 | Mark.Shannon | set | recipients:
+ Mark.Shannon |
2020-04-08 15:47:35 | Mark.Shannon | set | messageid: <1586360855.72.0.434652598832.issue40228@roundup.psfhosted.org> |
2020-04-08 15:47:35 | Mark.Shannon | link | issue40228 messages |
2020-04-08 15:47:35 | Mark.Shannon | create | |
|