debug navicimom with windbg
2011-06-26 13:22
253 查看
1. Disable watchdog on sp: set WatchdogActive to 0in HKLM/SOFTWARE/EMC/ManagementServer/Navishpere Express/WatchDog
2. kiss whatchdog in task manager.
3.use a script to point your clearcase view to the correct symbols????
========windbg command=====================
ctrl + break: to break into debugger
~*kbn displays stacks of all threads
~#n switch ocntext to given # thread
.frame # enter frame # in current thread
dv /i /t : display local variables of
bu `CIMOM.CPP:484`
bu NaviCimom!CIMOM::handleRequtest
bl(list) bd(disable) be(enable) bc(clear)
dt NAVString(shows how a class is laid out in memory)
dt NAVString 0x014bd054 (cast that address in given type)
dd (displays memory in 32 bit) dc(pls dd, also displays the bytes in ascii format) da (just displays memory as ascii f)
.logopen <FileName>
.logappend <FileName>
.logclose
windbg is great with tracing
void
NAVLog::log(const NAVString & who, const NAVString& what, etc.) // ingnor other parameters
bu Log!NAVLog::log ".printf /"CIMOMLog: %ma - %ms //n /", poi(poi(esp+0x4
), poi(poi(esp+0x8
)); g; "
poi(poi( : dereference a reference. if not for reference, poi(esp+0x4) means the first variable
%ma print NULL terminated ascii strings
+0x4 the first parameter passed in when no return value
+0x8 the first parameter passed in when ther eis return value for this function.
-0x28, local variable
tracing exception
sxe(enable) -c "~kbn(print a stack trace); gn(continue with exception not handled);" eh(event code for a c++ exception, av/dz);
2. kiss whatchdog in task manager.
3.use a script to point your clearcase view to the correct symbols????
========windbg command=====================
ctrl + break: to break into debugger
~*kbn displays stacks of all threads
~#n switch ocntext to given # thread
.frame # enter frame # in current thread
dv /i /t : display local variables of
bu `CIMOM.CPP:484`
bu NaviCimom!CIMOM::handleRequtest
bl(list) bd(disable) be(enable) bc(clear)
dt NAVString(shows how a class is laid out in memory)
dt NAVString 0x014bd054 (cast that address in given type)
dd (displays memory in 32 bit) dc(pls dd, also displays the bytes in ascii format) da (just displays memory as ascii f)
.logopen <FileName>
.logappend <FileName>
.logclose
windbg is great with tracing
void
NAVLog::log(const NAVString & who, const NAVString& what, etc.) // ingnor other parameters
bu Log!NAVLog::log ".printf /"CIMOMLog: %ma - %ms //n /", poi(poi(esp+0x4
), poi(poi(esp+0x8
)); g; "
poi(poi( : dereference a reference. if not for reference, poi(esp+0x4) means the first variable
%ma print NULL terminated ascii strings
+0x4 the first parameter passed in when no return value
+0x8 the first parameter passed in when ther eis return value for this function.
-0x28, local variable
tracing exception
sxe(enable) -c "~kbn(print a stack trace); gn(continue with exception not handled);" eh(event code for a c++ exception, av/dz);
相关文章推荐
- Debug driver with windbg
- Silverlight - debug with WinDbg
- How to debug unusual component with WinDbg
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'
- app:transformClassesWithDexForDebug Execution问题解决
- Error:Execution failed for task ':app:transformNative_libsWithStripDebugSymbolForRelease'.
- Execution failed for task ':app:compileDebugUnitTestJavaWithJavac'. (Solved)
- Error:Execution failed for task ':app:transformClassesWithDexForDebug&#
- With commons loggin and Log4j, the TRACE level is replaced with DEBUG level.
- Execution failed for task ':app:compileDebugJavaWithJavac'. Failed to create MD5 hash for file ...
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
- Bmob之Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the
- Gradle build error, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
- (Debug)VS2008安装报错:InternalInstallManager() with HRESULT -2147023293
- [Debug实践]windbg解决网站服务器高CPU问题
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'
- transformNativeLibsWithStripDebugSymbolForDebug
- Debug with anonymous inner classes
- Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed with multipl 解决