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
bbd89b66
Kaydet (Commit)
bbd89b66
authored
Ock 24, 2001
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
PyObject_Dump() -> _PyObject_Dump()
PyGC_Dump() -> _PyGC_Dump()
üst
430d773f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
gdbinit
Misc/gdbinit
+2
-2
object.c
Objects/object.c
+3
-3
No files found.
Misc/gdbinit
Dosyayı görüntüle @
bbd89b66
...
@@ -16,12 +16,12 @@
...
@@ -16,12 +16,12 @@
# number of reference counts it current has and the hex address the
# number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyObject*
# object is allocated at. The argument must be a PyObject*
define pyo
define pyo
print PyObject_Dump
(
$arg0
)
print
_
PyObject_Dump
(
$arg0
)
end
end
# Prints a representation of the object to stderr, along with the
# Prints a representation of the object to stderr, along with the
# number of reference counts it current has and the hex address the
# number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyGC_Head*
# object is allocated at. The argument must be a PyGC_Head*
define pyg
define pyg
print PyGC_Dump
(
$arg0
)
print
_
PyGC_Dump
(
$arg0
)
end
end
Objects/object.c
Dosyayı görüntüle @
bbd89b66
...
@@ -221,7 +221,7 @@ PyObject_Print(PyObject *op, FILE *fp, int flags)
...
@@ -221,7 +221,7 @@ PyObject_Print(PyObject *op, FILE *fp, int flags)
}
}
/* For debugging convenience. See Misc/gdbinit for some useful gdb hooks */
/* For debugging convenience. See Misc/gdbinit for some useful gdb hooks */
void
PyObject_Dump
(
PyObject
*
op
)
void
_
PyObject_Dump
(
PyObject
*
op
)
{
{
(
void
)
PyObject_Print
(
op
,
stderr
,
0
);
(
void
)
PyObject_Print
(
op
,
stderr
,
0
);
fprintf
(
stderr
,
"
\n
refcounts: %d
\n
"
,
op
->
ob_refcnt
);
fprintf
(
stderr
,
"
\n
refcounts: %d
\n
"
,
op
->
ob_refcnt
);
...
@@ -229,9 +229,9 @@ void PyObject_Dump(PyObject* op)
...
@@ -229,9 +229,9 @@ void PyObject_Dump(PyObject* op)
}
}
#ifdef WITH_CYCLE_GC
#ifdef WITH_CYCLE_GC
void
PyGC_Dump
(
PyGC_Head
*
op
)
void
_
PyGC_Dump
(
PyGC_Head
*
op
)
{
{
PyObject_Dump
(
PyObject_FROM_GC
(
op
));
_
PyObject_Dump
(
PyObject_FROM_GC
(
op
));
}
}
#endif
/* WITH_CYCLE_GC */
#endif
/* WITH_CYCLE_GC */
...
...
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