diff options
author | Samuel Bronson <naesten@gmail.com> | 2011-12-08 18:25:23 -0500 |
---|---|---|
committer | Samuel Bronson <naesten@gmail.com> | 2011-12-08 18:25:23 -0500 |
commit | 8eb8eebf99ac1b8f1900b93bb377264960b66b56 (patch) | |
tree | 27a1753dc1183c7189838507bfe632872d4e78c7 /crawl-ref/source/crawl-gdb.py | |
parent | 64f671a119a02ca6109015c3aa71e68102227da1 (diff) | |
download | crawl-ref-8eb8eebf99ac1b8f1900b93bb377264960b66b56.tar.gz crawl-ref-8eb8eebf99ac1b8f1900b93bb377264960b66b56.zip |
Rejigger whitespace.
Diffstat (limited to 'crawl-ref/source/crawl-gdb.py')
-rw-r--r-- | crawl-ref/source/crawl-gdb.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/crawl-gdb.py b/crawl-ref/source/crawl-gdb.py index 20c3b41a4f..1a63a7919c 100644 --- a/crawl-ref/source/crawl-gdb.py +++ b/crawl-ref/source/crawl-gdb.py @@ -32,6 +32,7 @@ class actor_printer: return "{} #{:#x} at {}".format( self.val["type"], int(self.val["mid"]), self.val["position"]) + class FixedVector_printer: def __init__(self, val): self.val = val @@ -39,6 +40,7 @@ class FixedVector_printer: def to_string(self): return self.val['mData'] + # Pretty printers for "store.h" class CrawlHashTable_printer: def __init__(self, val): @@ -119,12 +121,16 @@ class CrawlStoreValue_printer: def build_pretty_printer(): pp = gdb.printing.RegexpCollectionPrettyPrinter("crawl") + pp.add_printer('coord_def', '^coord_def$', coord_def_printer) # pp.add_printer('actor', '^actor$', actor_printer) + pp.add_printer('FixedVector', '^FixedVector<.*>$', FixedVector_printer) + pp.add_printer('CrawlHashTable', '^CrawlHashTable$', CrawlHashTable_printer) pp.add_printer('CrawlVector', '^CrawlVector$', CrawlVector_printer) pp.add_printer('CrawlStoreValue', '^CrawlStoreValue$', CrawlStoreValue_printer) + return pp gdb.printing.register_pretty_printer( |