From b7616a4fcf2ba0322c64cf72d41adfd308f7df54 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sun, 23 Jul 2017 14:18:03 +0100 Subject: [PATCH] Make sure to only match Vec types. --- gdb/vectorwrapper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/vectorwrapper.py b/gdb/vectorwrapper.py index 2197d90..022308b 100644 --- a/gdb/vectorwrapper.py +++ b/gdb/vectorwrapper.py @@ -19,8 +19,8 @@ import gdb.printing #This pretty-printer has been written for vectorwrapper + std::array. #You will have to customize it if your wrapped type is different. -class VectorWrapperPrinter(object): - "Print values in a VectorWrapper" +class VectorWrapperStdArrPrinter(object): + "Print values in a VectorWrapper" class _iterator(object): def __init__(self, start, size): @@ -63,7 +63,7 @@ class VectorWrapperPrinter(object): def build_pretty_printer(): pp = gdb.printing.RegexpCollectionPrettyPrinter(__name__) #add your namespace before 'vwr' if you're using a custom one - pp.add_printer('vwr', '^vwr::Vec<.+$', VectorWrapperPrinter) + pp.add_printer('vwr', '^vwr::Vec