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
4f211a0d
Kaydet (Commit)
4f211a0d
authored
Agu 19, 2014
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gdb: print the SwNodeIndex properly if there are multiple blocks
Change-Id: I178d365e71ef3377b1a2cfc115bb297640161efe
üst
b3d98523
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sw.py
solenv/gdb/libreoffice/sw.py
+6
-2
No files found.
solenv/gdb/libreoffice/sw.py
Dosyayı görüntüle @
4f211a0d
...
@@ -19,8 +19,10 @@ class SwPositionPrinter(object):
...
@@ -19,8 +19,10 @@ class SwPositionPrinter(object):
def
to_string
(
self
):
def
to_string
(
self
):
node
=
self
.
value
[
'nNode'
][
'pNd'
]
.
dereference
();
node
=
self
.
value
[
'nNode'
][
'pNd'
]
.
dereference
();
block
=
node
[
'pBlock'
]
.
dereference
();
nodeindex
=
block
[
'nStart'
]
+
node
[
'nOffset'
]
offset
=
self
.
value
[
'nContent'
][
'm_nIndex'
]
offset
=
self
.
value
[
'nContent'
][
'm_nIndex'
]
return
"
%
s (node
%
d, offset
%
d)"
%
(
self
.
typename
,
node
[
'nOffset'
]
,
offset
)
return
"
%
s (node
%
d, offset
%
d)"
%
(
self
.
typename
,
node
index
,
offset
)
class
SwNodeIndexPrinter
(
object
):
class
SwNodeIndexPrinter
(
object
):
'''Prints SwNodeIndex.'''
'''Prints SwNodeIndex.'''
...
@@ -31,7 +33,9 @@ class SwNodeIndexPrinter(object):
...
@@ -31,7 +33,9 @@ class SwNodeIndexPrinter(object):
def
to_string
(
self
):
def
to_string
(
self
):
node
=
self
.
value
[
'pNd'
]
.
dereference
();
node
=
self
.
value
[
'pNd'
]
.
dereference
();
return
"
%
s (node
%
d)"
%
(
self
.
typename
,
node
[
'nOffset'
])
block
=
node
[
'pBlock'
]
.
dereference
();
nodeindex
=
block
[
'nStart'
]
+
node
[
'nOffset'
]
return
"
%
s (node
%
d)"
%
(
self
.
typename
,
nodeindex
)
class
SwIndexPrinter
(
object
):
class
SwIndexPrinter
(
object
):
'''Prints SwIndex.'''
'''Prints SwIndex.'''
...
...
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