Fix step with stackalloc (dotnet/coreclr#27246)
authorSteve MacLean <Steve.MacLean@microsoft.com>
Fri, 18 Oct 2019 16:04:25 +0000 (12:04 -0400)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2019 16:04:25 +0000 (12:04 -0400)
commite2c99e363febf978ec39530593596c9432c57d44
treeadd1587baac0fe5dd040559d5e13178b3d08fc70
parent337a98d4fcca533a3e379b35808dbe05b73d6ff2
Fix step with stackalloc (dotnet/coreclr#27246)

* Make ControllerStackInfo::m_returnFrame private

* Make ControllerStackInfo always capture a return frame

In case the active frame has no managed caller, capture
the unmanaged frame

* Fix step over stackalloc

Generalize handling of stack allocations and stepping

* Fix GetFunctionFromToken() argument checking

Check token type is a method before creating a CordbFunction.

Add extra assert to check for invalid tokens

Commit migrated from https://github.com/dotnet/coreclr/commit/551710b95a0aa795f42750966a199c26cc9cd0d9
src/coreclr/src/debug/di/module.cpp
src/coreclr/src/debug/di/rsfunction.cpp
src/coreclr/src/debug/di/rspriv.h
src/coreclr/src/debug/ee/controller.cpp
src/coreclr/src/debug/ee/controller.h
src/coreclr/src/debug/ee/frameinfo.cpp
src/coreclr/src/debug/ee/frameinfo.h
src/coreclr/src/inc/regdisp.h