Skip to content

Include the frame register when copying arm32 debugger stackwalk context #116663

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

Merged

Conversation

tommcdon
Copy link
Member

@tommcdon tommcdon commented Jun 14, 2025

In my previous change on #116617, I didn't include copying the frame pointer for arm32. This change enables DT_CONTEXT_INTEGER for arm32 in addition to the previously enabled amd64 architecture.

Fixes: #115668

@Copilot Copilot AI review requested due to automatic review settings June 14, 2025 01:54
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for copying the frame register on ARM32 by enabling DT_CONTEXT_INTEGER when TARGET_ARM is defined, matching the existing behavior on AMD64.

  • Expanded the ContextFlags mask to include DT_CONTEXT_INTEGER for ARM32.
  • Updated comments to explain why DT_CONTEXT_INTEGER is required on ARM32 and AMD64.
Comments suppressed due to low confidence (2)

src/coreclr/debug/daccess/dacdbiimpl.cpp:5651

  • [nitpick] Consider clarifying and formatting this comment to be more concise and aligned. For example:
// Include frame register on ARM32 and AMD64
| DT_CONTEXT_INTEGER
| DT_CONTEXT_INTEGER  // DT_CONTEXT_INTEGER is needed to include the frame register on ARM32 and AMD64 architectures

src/coreclr/debug/daccess/dacdbiimpl.cpp:5650

  • Add or update unit tests to cover the ARM32 path and verify that DT_CONTEXT_INTEGER is correctly set when TARGET_ARM is defined.
#if defined(TARGET_AMD64) || defined(TARGET_ARM)

Copy link
Contributor

Tagging subscribers to this area: @steveisok, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

@noahfalk noahfalk merged commit e2bd63b into dotnet:main Jun 16, 2025
96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.NET Debugging services crash in ASP.NET project that raises exceptions
3 participants