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

[sdb] Expose the domain of the stack frames #1411

Merged
merged 3 commits into from
Nov 20, 2014

Conversation

jbevain
Copy link
Member

@jbevain jbevain commented Nov 18, 2014

When debugging a multi-domain application, the debugger needs to evaluate expressions and types in the domain specific to the stack frame. This PR implements this functionality.

Previously, contexts for stack frames were using the Thread.Domain property, which is incorrect when a thread is executing code in multiple domains.

This patch is licensed under the MIT/X11 license.

This command returns the domain in which the stack frame is executing

Bump protocol version.
This property uses the new CMD_STACK_FRAME_GET_DOMAIN command
to retrieve and cache the domain in which the stack frame
is executing.

Bump the protocol version to match the runtime.
Assert that the property returns the proper domain for the stack frame.
@jbevain
Copy link
Member Author

jbevain commented Nov 18, 2014

The errors reported by the buildbot for this are not related to the change.

@vargaz
Copy link
Contributor

vargaz commented Nov 19, 2014

Doesn't StackFrame.Thread.Domain expose the same info ? The ThreadMirror object is per-domain.

@jbevain
Copy link
Member Author

jbevain commented Nov 19, 2014

Ah interesting. I think I was taking the domain from the Thread of the event, and not from the frame.Thread.Domain.

That's not super intuitive though, as I thought that for thread.GetFrames(), all frames.Thread would point to thread.

I'll check tomorrow. If that works I'll simply add a new Domain property on StackFrame which returns this.Thread.Domain.

Thanks for the pointer Zoltan!

Jb

On 19 nov. 2014, at 22:17, Zoltan Varga notifications@github.com wrote:

Doesn't StackFrame.Thread.Domain expose the same info ? The ThreadMirror object is per-domain.


Reply to this email directly or view it on GitHub.

@vargaz
Copy link
Contributor

vargaz commented Nov 19, 2014

You're right, that won't work. Will look at the patch.

vargaz added a commit that referenced this pull request Nov 20, 2014
[sdb] Expose the domain of the stack frames
@vargaz vargaz merged commit 5644d15 into mono:master Nov 20, 2014
vargaz added a commit that referenced this pull request Nov 20, 2014
[sdb] Expose the domain of the stack frames
@jbevain jbevain deleted the sdb-frame-domain branch November 20, 2014 18:03
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
[sdb] Expose the domain of the stack frames

Commit migrated from mono/mono@5644d15
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.

2 participants