gdb: support ByteCount pretty printing
This commit is contained in:
parent
eed8a2a57c
commit
6b2f8ed70c
|
@ -82,6 +82,15 @@ class CharCount:
|
||||||
def to_string(self):
|
def to_string(self):
|
||||||
return self.val["m_value"]
|
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:
|
class LineCount:
|
||||||
"""Print a LineCount"""
|
"""Print a LineCount"""
|
||||||
|
|
||||||
|
@ -102,5 +111,6 @@ def build_pretty_printer():
|
||||||
pp.add_printer('Option', '^Kakoune::Option$', Option)
|
pp.add_printer('Option', '^Kakoune::Option$', Option)
|
||||||
pp.add_printer('LineCount', '^Kakoune::LineCount$', LineCount)
|
pp.add_printer('LineCount', '^Kakoune::LineCount$', LineCount)
|
||||||
pp.add_printer('CharCount', '^Kakoune::CharCount$', CharCount)
|
pp.add_printer('CharCount', '^Kakoune::CharCount$', CharCount)
|
||||||
|
pp.add_printer('ByteCount', '^Kakoune::ByteCount$', ByteCount)
|
||||||
return pp
|
return pp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user