Commit d7cbbd01 authored by SND\EreTIk_cp's avatar SND\EreTIk_cp
Browse files

[~] getProcessorType

[~] remove debug print, correct struct size

git-svn-id: https://pykd.svn.codeplex.com/svn@70204 9b283d60-5439-405e-af05-b73fd8c4d996
parent 37ce97f5
......@@ -213,6 +213,8 @@ BOOST_PYTHON_MODULE( pykd )
"Return current processor mode as string: X86, ARM, IA64 or X64" );
boost::python::def( "setProcessorMode", &setProcessorMode,
"Set current processor mode by string (X86, ARM, IA64 or X64)" );
boost::python::def( "getProcessorType", &getProcessorType,
"Return type of physical processor: X86, ARM, IA64 or X64" );
boost::python::def( "addSynSymbol", &addSyntheticSymbol,
"Add new synthetic symbol for virtual address" );
boost::python::def( "delAllSynSymbols", &delAllSyntheticSymbols,
......
......@@ -10,16 +10,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "targetapp", "test\targetapp
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccNumberOfProjects = 1
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs.codeplex.com/tfs/TFS08
SccLocalPath0 = .
SccProjectUniqueName1 = pykd\\pykd_2008.vcproj
SccProjectName1 = pykd
SccLocalPath1 = pykd
SccProjectUniqueName2 = test\\targetapp\\targetapp.vcproj
SccProjectName2 = test/targetapp
SccLocalPath2 = test\\targetapp
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
......
......@@ -53,8 +53,6 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False):
clientIdType.append(dynPtr, "UniqueProcess")
clientIdType.append(dynPtr, "UniqueThread")
print clientIdType
portMsgType = typeInfo("portmsg~_PORT_MESSAGE")
portMsgType.append(ushort_t, "DataLength")
portMsgType.append(ushort_t, "TotalLength")
......@@ -62,7 +60,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False):
portMsgType.append(ushort_t, "DataInfoOffset")
portMsgType.append(clientIdType, "ClientId")
portMsgType.append(ulong_t, "MessageId")
portMsgType.append(ulong_t, "CallbackId")
portMsgType.append(ulonglong_t, "ClientViewSize")
return portMsgType
def buildPortMessage32Type():
......@@ -78,7 +76,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False):
portMsgType.append(ushort_t, "DataInfoOffset")
portMsgType.append(clientIdType, "ClientId")
portMsgType.append(ulong_t, "MessageId")
portMsgType.append(ulong_t, "CallbackId")
portMsgType.append(ulong_t, "ClientViewSize")
return portMsgType
......@@ -109,7 +107,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False):
else:
procFindStr = "%d(0x%x)" % (messageHeader.ClientId.UniqueProcess, messageHeader.ClientId.UniqueProcess)
dprintln( "Client ID : process= " + procFindStr + ", thread= %d(0x%x)" % (messageHeader.ClientId.UniqueThread, messageHeader.ClientId.UniqueThread), isKernelDebugging())
dprintln( "View/Callback : %d (0x%x)" % (messageHeader.CallbackId, messageHeader.CallbackId) )
dprintln( "View/Callback : %d (0x%x)" % (messageHeader.ClientViewSize, messageHeader.ClientViewSize) )
if (printFormat not in DispFormatsLength):
dprintln( "WARRING: Unknown (" + printFormat + ") diplay fromat. Use \"b\"" )
printFormat = "b"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment