Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
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ç
LibreOffice
core
Commits
18485400
Kaydet (Commit)
18485400
authored
May 27, 2013
tarafından
Cédric Bosdonnat
Kaydeden (comit)
Cédric Bosdonnat
May 28, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SmartPtr pretty printer now behaves according to set print object value
Change-Id: Ie8a092b7d91e0f379c7102c3aa12da8eb7666840
üst
9f4c8a8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
smart_ptr.py
solenv/gdb/boost/smart_ptr.py
+7
-2
No files found.
solenv/gdb/boost/smart_ptr.py
Dosyayı görüntüle @
18485400
...
...
@@ -32,9 +32,14 @@ class SmartPtrPrinter:
def
to_string
(
self
):
if
self
.
value
[
'px'
]:
return
"
%
s
%
s"
%
(
self
.
typename
,
self
.
value
[
'px'
]
.
dereference
())
print_object
=
gdb
.
parameter
(
'print object'
)
value
=
self
.
value
[
'px'
]
.
dereference
()
if
print_object
:
dynamic_type
=
self
.
value
[
'px'
]
.
dynamic_type
value
=
self
.
value
[
'px'
]
.
cast
(
dynamic_type
)
.
dereference
()
return
"
%
s
%
s"
%
(
self
.
typename
,
value
)
else
:
return
"empty
%
s"
%
(
self
.
typename
,
)
return
"empty
%
s"
%
(
self
.
typename
)
printer
=
None
...
...
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