Skip to content

Commit 042d981

Browse files
[SYCL] [xmethods] Allow replacing xmethod script (#1532)
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 <mihails.strasuns@intel.com>
1 parent 148d04d commit 042d981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/xmethods/libsycl.so-gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ def match(self, class_type, method_name):
133133
return methods
134134

135135

136-
gdb.xmethod.register_xmethod_matcher(None, AccessorOpIndexMatcher())
136+
gdb.xmethod.register_xmethod_matcher(None, AccessorOpIndexMatcher(), replace=True)

0 commit comments

Comments
 (0)