Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3a9ccee0
Kaydet (Commit)
3a9ccee0
authored
Nis 06, 2018
tarafından
Marcel Plch
Kaydeden (comit)
Ned Deily
Nis 06, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-29673: fix gdb scripts pystack and pystackv (GH-6126)
üst
1d87c7b8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
ACKS
Misc/ACKS
+1
-0
2018-03-16-17-25-05.bpo-29673.m8QtaW.rst
...next/Tools-Demos/2018-03-16-17-25-05.bpo-29673.m8QtaW.rst
+1
-0
gdbinit
Misc/gdbinit
+7
-7
ceval.c
Python/ceval.c
+1
-1
No files found.
Misc/ACKS
Dosyayı görüntüle @
3a9ccee0
...
...
@@ -1250,6 +1250,7 @@ Zero Piraeus
Antoine Pitrou
Jean-François Piéronne
Oleg Plakhotnyuk
Marcel Plch
Remi Pointel
Jon Poler
Ariel Poliak
...
...
Misc/NEWS.d/next/Tools-Demos/2018-03-16-17-25-05.bpo-29673.m8QtaW.rst
0 → 100644
Dosyayı görüntüle @
3a9ccee0
Fix pystackv and pystack gdbinit macros.
Misc/gdbinit
Dosyayı görüntüle @
3a9ccee0
...
...
@@ -42,8 +42,8 @@ define pylocals
set $_i = 0
while $_i < f->f_code->co_nlocals
if f->f_localsplus + $_i != 0
set $_names =
co
->co_varnames
set $_name =
_PyUnicode_AsString
(PyTuple_GetItem($_names, $_i))
set $_names =
f->f_code
->co_varnames
set $_name =
PyUnicode_AsUTF8
(PyTuple_GetItem($_names, $_i))
printf "%s:\n", $_name
pyo f->f_localsplus[$_i]
end
...
...
@@ -84,8 +84,8 @@ define pyframev
end
define pyframe
set $__fn =
_PyUnicode_AsString(co
->co_filename)
set $__n =
_PyUnicode_AsString(co
->co_name)
set $__fn =
PyUnicode_AsUTF8(f->f_code
->co_filename)
set $__n =
PyUnicode_AsUTF8(f->f_code
->co_name)
printf "%s (", $__fn
lineno
printf "): %s\n", $__n
...
...
@@ -110,7 +110,7 @@ end
#end
define printframe
if $pc > PyEval_EvalFrameEx && $pc <
PyEval_EvalCodeEx
if $pc > PyEval_EvalFrameEx && $pc <
_PyEval_EvalFrameDefault
pyframe
else
frame
...
...
@@ -139,7 +139,7 @@ document pystack
end
define pystack
while $pc < Py_Main || $pc > Py_GetArgcArgv
if $pc > PyEval_EvalFrameEx && $pc <
PyEval_EvalCodeEx
if $pc > PyEval_EvalFrameEx && $pc <
_PyEval_EvalFrameDefault
pyframe
end
up-silently 1
...
...
@@ -152,7 +152,7 @@ document pystackv
end
define pystackv
while $pc < Py_Main || $pc > Py_GetArgcArgv
if $pc > PyEval_EvalFrameEx && $pc <
PyEval_EvalCodeEx
if $pc > PyEval_EvalFrameEx && $pc <
_PyEval_EvalFrameDefault
pyframev
end
up-silently 1
...
...
Python/ceval.c
Dosyayı görüntüle @
3a9ccee0
...
...
@@ -3661,7 +3661,7 @@ too_many_positional(PyCodeObject *co, Py_ssize_t given, Py_ssize_t defcount,
}
/* This is gonna seem *real weird*, but if you put some other code between
PyEval_EvalFrame() and
PyEval_EvalCodeEx
() you will need to adjust
PyEval_EvalFrame() and
_PyEval_EvalFrameDefault
() you will need to adjust
the test in the if statements in Misc/gdbinit (pystack and pystackv). */
PyObject
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment