Skip to content

Commit

Permalink
gdb: support ByteCount pretty printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mawww committed Oct 22, 2012
1 parent eed8a2a commit 6b2f8ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gdb/kakoune.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ def __init__(self, val):
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"""

Expand All @@ -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

0 comments on commit 6b2f8ed

Please sign in to comment.