summaryrefslogtreecommitdiffstats
path: root/solenv/gdb/libreoffice/util/compatibility.py
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/gdb/libreoffice/util/compatibility.py')
-rw-r--r--solenv/gdb/libreoffice/util/compatibility.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/solenv/gdb/libreoffice/util/compatibility.py b/solenv/gdb/libreoffice/util/compatibility.py
new file mode 100644
index 000000000..6d8070997
--- /dev/null
+++ b/solenv/gdb/libreoffice/util/compatibility.py
@@ -0,0 +1,20 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+import gdb
+
+use_gdb_printing = True
+try:
+ import gdb.printing
+except ImportError:
+ use_gdb_printing = False
+
+use_lazy_string = hasattr(gdb.Value, 'lazy_string')
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab: