Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da4eda commit 4655e44Copy full SHA for 4655e44
1 file changed
Misc/gdbinit
@@ -46,18 +46,19 @@ end
46
# A rewrite of the Python interpreter's line number calculator in GDB's
47
# command language
48
define lineno
49
+ set $__continue = 1
50
set $__co = f->f_code
51
set $__lasti = f->f_lasti
52
set $__sz = ((PyStringObject *)$__co->co_lnotab)->ob_size/2
53
set $__p = (unsigned char *)((PyStringObject *)$__co->co_lnotab)->ob_sval
54
set $__li = $__co->co_firstlineno
55
set $__ad = 0
- while ($__sz-1 >= 0)
56
+ while ($__sz-1 >= 0 && $__continue)
57
set $__sz = $__sz - 1
58
set $__ad = $__ad + *$__p
59
set $__p = $__p + 1
60
if ($__ad > $__lasti)
- break
61
+ set $__continue = 0
62
end
63
set $__li = $__li + *$__p
64
0 commit comments