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

Add another example of interop between C++ and Python #8044

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

rchiodo
Copy link
Contributor

@rchiodo rchiodo commented Oct 29, 2024

This is a simpler example than what I already wrote for interoping between C++ and Python. This example calls C++ code from Python.

@rchiodo rchiodo requested a review from a team as a code owner October 29, 2024 22:30
if (addr == 0) {
return false;
}

return frame.InstructionAddress.IsInSameFunction(process.CreateNativeInstructionAddress(addr));
var addressMatch = frame.InstructionAddress.IsInSameFunction(process.CreateNativeInstructionAddress(addr));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't getting address matching even when the native frame was the actual _PyEval_EvalFrameDefault frame. Maybe something is messed up with the pdb because the RVAs were off.

Copy link

sonarcloud bot commented Oct 30, 2024

@gramster gramster self-assigned this Oct 30, 2024
@gramster gramster assigned rchiodo and unassigned gramster Oct 30, 2024
@rchiodo rchiodo merged commit cc9a71c into microsoft:main Oct 30, 2024
5 checks passed
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