From dba0ad90b9ba2eb64c3fbb80d110c676ab1fab95 Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Fri, 6 Dec 2019 10:29:44 -0800 Subject: [PATCH] Change `mcs -dump` to show the full function name for each MC (#600) --- .../ToolBox/superpmi/superpmi-shared/methodcontext.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/coreclr/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp b/src/coreclr/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp index 2cb0c40965d33..a50e310847fa0 100644 --- a/src/coreclr/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp +++ b/src/coreclr/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp @@ -478,6 +478,15 @@ void MethodContext::dumpToConsole(int mcNumber) { printf(" method context #%d", mcNumber); } + + // Dump method name, etc., to output. + char bufferIdentityInfo[METHOD_IDENTITY_INFO_SIZE]; + int cbLen = dumpMethodIdentityInfoToBuffer(bufferIdentityInfo, METHOD_IDENTITY_INFO_SIZE); + if (cbLen >= 0) + { + printf(" %s", bufferIdentityInfo); + } + printf("\n"); #define LWM(map, key, value) dumpLWM(this, map)