From b8607796ffe2874e0761724b260d91b9933bcf10 Mon Sep 17 00:00:00 2001 From: Mihails Strasuns Date: Thu, 16 Apr 2020 16:44:48 +0200 Subject: [PATCH] [SYCL] [xmethods] Allow replacing xmethod script Previous version didn't work when `run` command was issued multiple times in GDB without terminating the session, as it reloads libsycl-gdb.py each time shared library is loaded. Explicitly allowing to replace previous version fixes the problem. Signed-off-by: Mihails Strasuns --- sycl/xmethods/libsycl.so-gdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/xmethods/libsycl.so-gdb.py b/sycl/xmethods/libsycl.so-gdb.py index a2c1fc810b7bd..393c33a858acb 100644 --- a/sycl/xmethods/libsycl.so-gdb.py +++ b/sycl/xmethods/libsycl.so-gdb.py @@ -133,4 +133,4 @@ def match(self, class_type, method_name): return methods -gdb.xmethod.register_xmethod_matcher(None, AccessorOpIndexMatcher()) +gdb.xmethod.register_xmethod_matcher(None, AccessorOpIndexMatcher(), replace=True)