Skip to content

Don't register cppvsdbg for Windows ARM. - #6401

Merged
Sean McManus (sean-mcmanus) merged 4 commits into
masterfrom
seanmcm/disableWinArm64Debugging
Oct 29, 2020
Merged

Sean McManus (sean-mcmanus) merged 4 commits into
masterfrom
seanmcm/disableWinArm64Debugging

Conversation

@sean-mcmanus

@sean-mcmanus Sean McManus (sean-mcmanus) commented Oct 27, 2020 •

Copy link
Copy Markdown
Contributor

This causes a no-op when the C++ (Windows) debug option is selected. The behavior matches what occurs on Linux/Mac, although ideally it seems like the "C++ (Windows)" option should be disabled in the UI or a message would be shown.

@WardenGnaw

Copy link
Copy Markdown
Member

Does gdb scenario work on Windows ARM64?

@sean-mcmanus

Copy link
Copy Markdown
Contributor Author

Does gdb scenario work on Windows ARM64?

Yeah, mingw/gdb debugging works fine. Did you expect some issue in that scenario?

@WardenGnaw

Copy link
Copy Markdown
Member

It might be using mono x86 so it may be slow. It would be nice to have a native arm64 runtime.

But if that scenario works, that is good to hear.

@sean-mcmanus

Copy link
Copy Markdown
Contributor Author

It might be using mono x86 so it may be slow. It would be nice to have a native arm64 runtime.

But if that scenario works, that is good to hear.

Oh, well, debugging of a simple program works (e.g. math operations from cmath), but when I use a std::string or std::vector it fails. The logging shows "During startup program exited with code 0xc0000135". Any ideas how to fix that?

@WardenGnaw

Andrew Wang (WardenGnaw) commented Oct 27, 2020 •

Copy link
Copy Markdown
Member

0xc0000135 is STATUS_DLL_NOT_FOUND. They may be an issue with mono framework x86, it is trying to load a dll and failing. Edit: We dont use mono for windows, we have .net framework.
You might be able to see which dll it is loading with Fuslogvw.exe

@sean-mcmanus

Sean McManus (sean-mcmanus) commented Oct 27, 2020 •

Copy link
Copy Markdown
Contributor Author

0xc0000135 is STATUS_DLL_NOT_FOUND. They may be an issue with mono framework x86, it is trying to load a dll and failing.
You might be able to see which dll it is loading with Fuslogvw.exe

It says

Bind result: hr = 0x80004005. Unspecified error.
...
Rejecting native image because native image dependency C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\...\mscorlib.dll had a different identity than expected.

@WardenGnaw

Copy link
Copy Markdown
Member

No idea, I would have to investigate why OpenDebugAD7.exe does not like the mscorlib shipped in Windows ARM64.

@sean-mcmanus

Copy link
Copy Markdown
Contributor Author

No idea, I would have to investigate why OpenDebugAD7.exe does not like the mscorlib shipped in Windows ARM64.

So is this change good enough for 1.1.0? Or do you have another recommendation?

@bobbrow

Copy link
Copy Markdown
Contributor

We can merge this as-is. I think our message for 1.1 is going to be "debugging is unsupported on Windows ARM64"

@bobbrow
Bob Brown (bobbrow) deleted the seanmcm/disableWinArm64Debugging branch October 29, 2020 21:04
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants