Don't fail if a registered printer has no name
This commit is contained in:
parent
7359d0542f
commit
4d54456f66
@ -71,10 +71,10 @@ def build_pretty_printer():
|
|||||||
pp.add_printer('TurnLaneData', '::TurnLaneData$', TurnLaneDataPrinter)
|
pp.add_printer('TurnLaneData', '::TurnLaneData$', TurnLaneDataPrinter)
|
||||||
return pp
|
return pp
|
||||||
|
|
||||||
gdb.pretty_printers = [x for x in gdb.pretty_printers if x.name != 'OSRM'] # unregister OSRM pretty printer before (re)loading
|
## unregister OSRM pretty printer before (re)loading
|
||||||
|
gdb.pretty_printers = [x for x in gdb.pretty_printers if not isinstance(x, gdb.printing.RegexpCollectionPrettyPrinter) or x.name != 'OSRM']
|
||||||
gdb.printing.register_pretty_printer(gdb.current_objfile(), build_pretty_printer())
|
gdb.printing.register_pretty_printer(gdb.current_objfile(), build_pretty_printer())
|
||||||
|
|
||||||
|
|
||||||
import geojson
|
import geojson
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
Loading…
Reference in New Issue
Block a user