Skip to content

Commit 93e1387

Browse files
[SYCL] Fix xmethod interaction with ptype command (#2337)
Fixes the following error when `ptype accessor[0]` command is run in GDB: > Python Exception <class 'TypeError'> get_result_type() takes 1 positional argument but 3 were given: > Error while fetching result type of an xmethod worker defined in Python.
1 parent 7af245b commit 93e1387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/gdb/libsycl.so-gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self, class_type, result_type, depth):
8585
def get_arg_types(self):
8686
return gdb.lookup_type("cl::sycl::id<%s>" % self.depth)
8787

88-
def get_result_type(self):
88+
def get_result_type(self, *args):
8989
return self.result_type
9090

9191
def __call__(self, obj, arg):

0 commit comments

Comments
 (0)