14 return "{id=%d (%d, %d)}" % (self.
val[
"id"], self.
val[
"col"], self.
val[
"row"])
19 "Register my pretty-printers with objfile Obj."
25 gdb.printing.register_pretty_printer(obj, p)
28 printer = gdb.printing.RegexpCollectionPrettyPrinter(
"meas_algorithms")
30 printer.add_printer(
'lsst::meas::algorithms::CRPixel',
31 '^lsst::meas::algorithms::CRPixel', CRPixelPrinter)
36 except ImportError
as e:
38 print(
"Your version of gdb is too old to load the meas.algorithms python pretty printers: %s" %
39 (exception,), file=sys.stderr)