mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 19:13:22 +08:00
[~] getProcessorType
[~] remove debug print, correct struct size git-svn-id: https://pykd.svn.codeplex.com/svn@70204 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
37ce97f561
commit
d7cbbd016a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user