From: Gunnar Beutner Date: Fri, 12 Dec 2014 13:58:09 +0000 (+0100) Subject: Fix debug visualizer for the Value type X-Git-Tag: v2.3.0~511 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74d92b062aa913339551d971258c48b21671cc83;p=icinga2 Fix debug visualizer for the Value type fixes #8073 --- diff --git a/tools/debug/gdb/icingadbg.py b/tools/debug/gdb/icingadbg.py index 64ad2df8c..d1e1c5970 100644 --- a/tools/debug/gdb/icingadbg.py +++ b/tools/debug/gdb/icingadbg.py @@ -20,8 +20,10 @@ class IcingaValuePrinter: elif which == 1: return self.val['m_Value']['storage_']['data_']['buf'].cast(gdb.lookup_type('double').pointer()).dereference() elif which == 2: - return self.val['m_Value']['storage_']['data_']['buf'].cast(gdb.lookup_type('icinga::String').pointer()).dereference() + return self.val['m_Value']['storage_']['data_']['buf'].cast(gdb.lookup_type('bool').pointer()).dereference() elif which == 3: + return self.val['m_Value']['storage_']['data_']['buf'].cast(gdb.lookup_type('icinga::String').pointer()).dereference() + elif which == 4: return self.val['m_Value']['storage_']['data_']['buf'].cast(gdb.lookup_type('icinga::Object').pointer()).dereference() else: return ''