Skip to content

Commit 3b13d76

Browse files
committed
etc: Move Pretty print TODOs to the top of the module.
1 parent aa1c864 commit 3b13d76

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

etc/gdb_pretty/printers.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import re
88
import gdb # type: ignore
99

10+
# TODO: Printers should inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
11+
1012

1113
class PrinterControl(gdb.printing.PrettyPrinter):
1214
"""
@@ -109,8 +111,6 @@ def format_fixed_point(value: int, fractional_bits: int) -> float:
109111
class CoordPrinter:
110112
"""
111113
Pretty printer for openage::coord types (CoordNeSe, CoordNeSeUp, CoordXY, CoordXYZ).
112-
113-
TODO: Inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
114114
"""
115115

116116
def __init__(self, val: gdb.Value):
@@ -150,8 +150,6 @@ def children(self):
150150
class TimePrinter:
151151
"""
152152
Pretty printer for openage::time::time_t.
153-
154-
TODO: Inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
155153
"""
156154

157155
def __init__(self, val: gdb.Value):
@@ -182,8 +180,6 @@ def children(self):
182180
class FixedPointPrinter:
183181
"""
184182
Pretty printer for openage::util::FixedPoint.
185-
186-
TODO: Inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
187183
"""
188184

189185
def __init__(self, val: gdb.Value):
@@ -220,8 +216,6 @@ def children(self):
220216
class VectorPrinter:
221217
"""
222218
Pretty printer for openage::util::Vector.
223-
224-
TODO: Inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
225219
"""
226220

227221
def __init__(self, val: gdb.Value):
@@ -267,8 +261,6 @@ def display_hint():
267261
class KeyframePrinter:
268262
"""
269263
Pretty printer for openage::curve::Keyframe.
270-
271-
TODO: Inherit from gdb.ValuePrinter when gdb 14.1 is available in all distros.
272264
"""
273265

274266
def __init__(self, val: gdb.Value):

0 commit comments

Comments
 (0)