• Miss Islington (bot)'s avatar
    bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) · fcea3ddc
    Miss Islington (bot) yazdı
    
    python-gdb.py now handles errors on computing the line number
    of a Python frame.
    
    Changes:
    
    * PyFrameObjectPtr.current_line_num() now catchs any Exception on
      calling addr2line(), instead of failing with a surprising "<class
      'TypeError'> 'FakeRepr' object is not subscriptable" error.
    * All callers of current_line_num() now handle current_line_num()
      returning None.
    * PyFrameObjectPtr.current_line() now also catchs IndexError on
      getting a line from the Python source file.
    (cherry picked from commit 2e438cc2)
    Co-authored-by: 's avatarVictor Stinner <vstinner@redhat.com>
    fcea3ddc
Adı
Son kayıt (commit)
Son güncelleme
..
buildbot Loading commit data...
c-globals Loading commit data...
ccbench Loading commit data...
clinic Loading commit data...
demo Loading commit data...
freeze Loading commit data...
gdb Loading commit data...
i18n Loading commit data...
importbench Loading commit data...
iobench Loading commit data...
msi Loading commit data...
nuget Loading commit data...
parser Loading commit data...
pynche Loading commit data...
scripts Loading commit data...
ssl Loading commit data...
stringbench Loading commit data...
test2to3 Loading commit data...
tz Loading commit data...
unicode Loading commit data...
unittestgui Loading commit data...
README Loading commit data...