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
4fcaec92
Kaydet (Commit)
4fcaec92
authored
Şub 21, 2013
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lldb4aoo: remove info-string parameter from walk_ptrchar
üst
305c919e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
lldb4aoo.py
solenv/inc/lldb4aoo.py
+13
-13
No files found.
solenv/inc/lldb4aoo.py
Dosyayı görüntüle @
4fcaec92
# to activate the AOO-LLDB helper script
run
the line below into LLDB
# to activate the AOO-LLDB helper script
type
the line below into LLDB
# command script import path-to-script/lldb4aoo.py
# command script import path-to-script/lldb4aoo.py
# or activate it automatically by adding the line to ~/.lldbinit
# or activate it automatically by adding the line to ~/.lldbinit
...
@@ -17,22 +17,22 @@ def __lldb_init_module( dbg, dict):
...
@@ -17,22 +17,22 @@ def __lldb_init_module( dbg, dict):
# register a generic helper function for pimpl types
# register a generic helper function for pimpl types
dbg
.
HandleCommand
(
'type summary add -F
%
s.
%
s -v -C yes -n PIMPL
%
s'
%
(
__name__
,
'get_pimpl_info'
,
' '
.
join
(
pimpl_types
)))
dbg
.
HandleCommand
(
'type summary add -F
%
s.
%
s -v -C yes -n PIMPL
%
s'
%
(
__name__
,
'get_pimpl_info'
,
' '
.
join
(
pimpl_types
)))
# local functions for use by the AOO-type summary providers
# local functions for use by the AOO-type summary providers
def
walk_ptrchain
(
v
,
info
):
def
walk_ptrchain
(
v
):
info
=
''
while
v
.
TypeIsPointerType
():
while
v
.
TypeIsPointerType
():
n
=
v
.
GetValueAsUnsigned
()
n
=
v
.
GetValueAsUnsigned
()
if
n
==
0
:
if
n
==
0
:
info
+=
'NULL'
info
+=
'NULL'
return
(
None
,
info
)
return
(
None
,
info
)
else
:
info
+=
'0x
%04
X-> '
%
(
n
)
info
+=
'0x
%04
X-> '
%
(
n
)
v
=
v
.
Dereference
()
v
=
v
.
Dereference
()
return
(
v
,
info
)
return
(
v
,
info
)
def
ret_strdata_info
(
v
,
refvar
,
lenvar
,
aryvar
):
def
ret_strdata_info
(
v
,
refvar
,
lenvar
,
aryvar
):
info
=
''
(
v
,
info
)
=
walk_ptrchain
(
v
)
(
v
,
info
)
=
walk_ptrchain
(
v
,
info
)
if
not
v
:
if
not
v
:
return
info
return
info
r
=
v
.
GetChildMemberWithName
(
refvar
)
.
GetValueAsSigned
()
r
=
v
.
GetChildMemberWithName
(
refvar
)
.
GetValueAsSigned
()
...
@@ -50,12 +50,13 @@ def ret_strdata_info( v, refvar, lenvar, aryvar):
...
@@ -50,12 +50,13 @@ def ret_strdata_info( v, refvar, lenvar, aryvar):
# definitions for our individual LLDB type summary providers
# definitions for our individual LLDB type summary providers
def
get_pimpl_info
(
valobj
,
dict
):
def
get_pimpl_info
(
valobj
,
dict
):
v
=
walk_ptrchain
(
valobj
,
''
)
(
v
,
info
)
=
walk_ptrchain
(
valobj
)
p
=
v
.
GetChildAtIndex
(
0
)
p
=
v
.
GetChildAtIndex
(
0
)
info
=
v
.
GetName
()
pname
=
p
.
GetName
()
if
v
.
GetValueAsUnsigned
()
==
0
:
n
=
p
.
GetValueAsUnsigned
()
return
'(
%
s==NULL)'
%
(
info
)
if
n
==
0
:
info
=
'(
%
s=0x
%04
X)-> '
%
(
info
,
n
)
return
'
%
s(
%
s==NULL)'
%
(
info
,
pname
)
info
=
'
%
s(
%
s=0x
%04
X)-> '
%
(
info
,
pname
,
n
)
return
info
+
p
.
Dereference
()
.
GetSummary
()
return
info
+
p
.
Dereference
()
.
GetSummary
()
...
@@ -71,4 +72,3 @@ def getinfo_for__ByteStringData( valobj, dict):
...
@@ -71,4 +72,3 @@ def getinfo_for__ByteStringData( valobj, dict):
def
getinfo_for__UniStringData
(
valobj
,
dict
):
def
getinfo_for__UniStringData
(
valobj
,
dict
):
return
ret_strdata_info
(
valobj
,
'mnRefCount'
,
'mnLen'
,
'maStr'
)
return
ret_strdata_info
(
valobj
,
'mnRefCount'
,
'mnLen'
,
'maStr'
)
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