Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix xmethods for gdb #7009

Merged
merged 3 commits into from
Oct 10, 2022
Merged

Fix xmethods for gdb #7009

merged 3 commits into from
Oct 10, 2022

Conversation

NCKempke
Copy link
Contributor

We noticed a few issues in the GDB xmethods scripts. This PR fixes them.

As extensively discussed here
https://sourceware.org/bugzilla/show_bug.cgi?id=28480
the access of "_M_head_impl" for unique_ptr compiled with newer versions
of libstdc++ might be ambiguous.  We change the xmethods script to instead
evaluate the unique_ptr's get() method which resolves this.
An earlier commit deprecated the use of sycl::access::target::local
and instead introduced the template class sycl::local_accessor.  We have
to match the new class' name in our xmethods script, too.  The handling
is the same as for the sycl::accessor.
GDB needs both, the const and non-const versions of the helper methods
for its pretty-printers.  This commit adds the const versions to the
GDBMethodsAnchor.
@NCKempke NCKempke requested a review from a team as a code owner October 10, 2022 13:45
@NCKempke
Copy link
Contributor Author

NCKempke commented Oct 10, 2022

@barisaktemur FYI. You may want to have a look. I only tested this by changing a private version of the xmethods script and running all tests on my machine locally.

@pvchupin pvchupin merged commit e49aa08 into intel:sycl Oct 10, 2022
@NCKempke NCKempke deleted the fix-xmethods-for-GDB branch October 11, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants