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

Native Image debugger does not set print objects on. Checks added to prevent from exceptions. #3619

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

entlicher
Copy link
Contributor

@entlicher entlicher commented Feb 17, 2022

In order to be able to retrieve runtime type information from native image, we must not set "print objects" GDB setting to "on". When it's on, we get some memory access issues from GDB.
To be able to turn it off for native image debugging (we want to have it on for C/C++), we need to add displayObjects flag into StartDebugParameters. We need to have it for both launch and attach, thus I've added processId as well and deprecated attach method.
Retrieval of runtime type information is added into JavaVariablesDisplayer and some additional checks are added to prevent from exceptions.

@entlicher entlicher merged commit 6554cbb into apache:master Feb 17, 2022
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.

None yet

2 participants