mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-22 11:01:48 +03:00
gdb: support ByteCount pretty printing
This commit is contained in:
parent
eed8a2a57c
commit
6b2f8ed70c
@ -82,6 +82,15 @@ class CharCount:
|
||||
def to_string(self):
|
||||
return self.val["m_value"]
|
||||
|
||||
class ByteCount:
|
||||
"""Print a ByteCount"""
|
||||
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
def to_string(self):
|
||||
return self.val["m_value"]
|
||||
|
||||
class LineCount:
|
||||
"""Print a LineCount"""
|
||||
|
||||
@ -102,5 +111,6 @@ def build_pretty_printer():
|
||||
pp.add_printer('Option', '^Kakoune::Option$', Option)
|
||||
pp.add_printer('LineCount', '^Kakoune::LineCount$', LineCount)
|
||||
pp.add_printer('CharCount', '^Kakoune::CharCount$', CharCount)
|
||||
pp.add_printer('ByteCount', '^Kakoune::ByteCount$', ByteCount)
|
||||
return pp
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user