From f513741bdc91f1871bdb8b01b21058e208a96eb0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Sep 2024 17:09:58 +0200 Subject: [PATCH] fix basegfx.py after commit 3c82f49fcee3f1e4ddae8919993dde57e8bbab2d Author: Armin Le Grand (allotropia) Date: Mon Sep 23 17:57:00 2024 +0200 Adapting basegfx.py due to blocking in some situations Change-Id: Ie266c7b5aeb5dccaae03c26b7cd73cd65841748c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173949 Reviewed-by: Noel Grandin Tested-by: Jenkins --- solenv/gdb/libreoffice/basegfx.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solenv/gdb/libreoffice/basegfx.py b/solenv/gdb/libreoffice/basegfx.py index 9e5fa4c88d00..b2e4db94536c 100644 --- a/solenv/gdb/libreoffice/basegfx.py +++ b/solenv/gdb/libreoffice/basegfx.py @@ -60,7 +60,7 @@ class B2DPolygonPrinter(object): def _count(self): # It's a call into the inferior (being debugged) process. # Will not work with core dumps and can cause a deadlock. - if self.exists() + if self.exists(): return int(gdb.parse_and_eval( "(('basegfx::B2DPolygon' *) {})->count()".format(self.value.address))) @@ -70,7 +70,7 @@ class B2DPolygonPrinter(object): def _hasCurves(self): # It's a call into the inferior (being debugged) process. # Will not work with core dumps and can cause a deadlock. - if self.exists() + if self.exists(): return int(gdb.parse_and_eval( "(('basegfx::B2DPolygon' *) {})->areControlPointsUsed()".format(self.value.address))) != 0 @@ -153,14 +153,14 @@ class B2DPolyPolygonPrinter(object): def _count(self): # It's a call into the inferior (being debugged) process. # Will not work with core dumps and can cause a deadlock. - if self.exists() + if self.exists(): return int(gdb.parse_and_eval( "(('basegfx::B2DPolyPolygon' *) {})->count()".format(self.value.address))) def _isClosed(self): # It's a call into the inferior (being debugged) process. # Will not work with core dumps and can cause a deadlock. - if self.exists() + if self.exists(): return int(gdb.parse_and_eval( "(('basegfx::B2DPolyPolygon' *) {})->isClosed()".format(self.value.address))) != 0