Skip to content

Commit

Permalink
etc: Add reminder to inherit from gdb.ValuePrinter later.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Apr 7, 2024
1 parent 0b146e2 commit f34022c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/gdb_pretty/printers.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def _register_printer(printer):
class TimePrinter:
"""
Pretty printer for openage::time::time_t.
TODO: Inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
"""

def __init__(self, val: gdb.Value):
Expand Down Expand Up @@ -126,6 +128,8 @@ def children(self):
class FixedPointPrinter:
"""
Pretty printer for openage::util::FixedPoint.
TODO: Inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
"""

def __init__(self, val: gdb.Value):
Expand Down Expand Up @@ -163,6 +167,8 @@ def children(self):
class VectorPrinter:
"""
Pretty printer for openage::util::Vector.
TODO: Inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
"""

def __init__(self, val: gdb.Value):
Expand Down

0 comments on commit f34022c

Please sign in to comment.