Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ece35d

Browse files
committed
Naive attempt to fixgdbinit
1 parent808950a commit1ece35d

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

‎Misc/gdbinit

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,7 @@ end
5454
# A rewrite of the Python interpreter's line number calculator in GDB's
5555
# command language
5656
define lineno
57-
set $__continue = 1
58-
set $__co = f->f_code
59-
set $__lasti = f->f_lasti
60-
set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
61-
set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval
62-
set $__li = $__co->co_firstlineno
63-
set $__ad = 0
64-
while ($__sz-1 >= 0 && $__continue)
65-
set $__sz = $__sz - 1
66-
set $__ad = $__ad + *$__p
67-
set $__p = $__p + 1
68-
if ($__ad > $__lasti)
69-
set $__continue = 0
70-
else
71-
set $__li = $__li + *$__p
72-
set $__p = $__p + 1
73-
end
74-
end
75-
printf "%d", $__li
57+
printf "%d", f->f_lineno
7658
end
7759

7860
define pyframev

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp