★ wanayoo — archive 1999 https://github.com/microsoft/java-debug/pull/163Nouvelle recherche | Portail wanayoo
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 the invalid stack exception during evaluation #163

Merged
merged 1 commit into from Mar 26, 2018
Merged

fix the invalid stack exception during evaluation #163

merged 1 commit into from Mar 26, 2018

Conversation

@andxu
Copy link
Collaborator

@andxu andxu commented Mar 26, 2018

No description provided.

@@ -95,7 +95,7 @@ public void initialize(IDebugAdapterContext context, Map<String, Object> props)
try {
ensureDebugTarget(thread.virtualMachine(), thread, 0);
JDIThread jdiThread = getMockJDIThread(thread);
JDIStackFrame stackframe = (JDIStackFrame) jdiThread.getTopStackFrame();
JDIStackFrame stackframe = new JDIStackFrame(jdiThread, thread.frame(0), 0);

This comment has been minimized.

@testforstephen

testforstephen Mar 26, 2018
Contributor

Why update it? Is JDIStackFrame changed by jdt library?

This comment has been minimized.

@andxu

andxu Mar 26, 2018
Author Collaborator

getTopStackFrame uses the inner cache in Jdithread, it will have the possibility to become invalid

@andxu andxu merged commit 72d056c into master Mar 26, 2018
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
license/cla All CLA requirements met.
Details
@andxu andxu deleted the andy_dev4 branch Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.