diff --git a/README.md b/README.md index 8980764..fbfead9 100644 --- a/README.md +++ b/README.md @@ -120,10 +120,10 @@ Tools->Options->Build & Run->Kits, by setting Qt version to any Qt version >= ### Build plugin and configure GDB -To build this plugin, create a `build` folder, open a terminal window inside it -and run: +To build this plugin, run: ```shell +$ mkdir build && cd build $ qmake .. BUILD_MODE=release PREFIX=/path/to/installation/folder $ make -j4 $ make install diff --git a/resources/giwscripts/giwtypes/eigen3.py b/resources/giwscripts/giwtypes/eigen3.py index b5e751a..3b28063 100644 --- a/resources/giwscripts/giwtypes/eigen3.py +++ b/resources/giwscripts/giwtypes/eigen3.py @@ -23,7 +23,7 @@ def get_buffer_metadata(self, obj_name, picked_obj, debugger_bridge): which should be quite common in Eigen. """ - type_str = str(picked_obj.type) + type_str = str(picked_obj.type.strip_typedefs()) is_eigen_map = 'Map' in type_str # First we need the python object for the actual matrix type. When # parsing a Map, the type is the first template parameter of the @@ -106,6 +106,6 @@ def is_symbol_observable(self, symbol, symbol_name): type as well """ # Check if symbol type is the expected buffer - symbol_type = str(symbol.type) + symbol_type = str(symbol.type.strip_typedefs()) type_regex = r'(const\s+)?Eigen::(\s+?[*&])?' return re.match(type_regex, symbol_type) is not None diff --git a/resources/giwscripts/giwtypes/opencv.py b/resources/giwscripts/giwtypes/opencv.py index 4f7cb1b..0a43c92 100644 --- a/resources/giwscripts/giwtypes/opencv.py +++ b/resources/giwscripts/giwtypes/opencv.py @@ -73,7 +73,7 @@ def is_symbol_observable(self, symbol, symbol_name): type as well """ # Check if symbol type is the expected buffer - symbol_type = str(symbol.type) + symbol_type = str(symbol.type.strip_typedefs()) type_regex = r'(const\s+)?cv::Mat(\s+?[*&])?' return re.match(type_regex, symbol_type) is not None @@ -124,6 +124,6 @@ def get_buffer_metadata(self, obj_name, picked_obj, debugger_bridge): } def is_symbol_observable(self, symbol, symbol_name): - symbol_type = str(symbol.type) + symbol_type = str(symbol.type.strip_typedefs()) type_regex = r'(const\s+)?CvMat(\s+?[*&])?' return re.match(type_regex, symbol_type) is not None