Skip to content

Commit

Permalink
Don't fail if a registered printer has no name
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase committed Jan 5, 2018
1 parent 7359d05 commit 4d54456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gdb_printers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def build_pretty_printer():
pp.add_printer('TurnLaneData', '::TurnLaneData$', TurnLaneDataPrinter)
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())


import geojson
import os
import time
Expand Down

0 comments on commit 4d54456

Please sign in to comment.