資源描述:
《solaris調(diào)試技術(shù)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、Solaris下調(diào)試技術(shù)綜述內(nèi)容GNU調(diào)試工具ForteDBX調(diào)試監(jiān)測(cè)工具adbmdb基本gdb命令(1)file裝入想要調(diào)試的可執(zhí)行文件.kill終止正在調(diào)試的程序.list列出產(chǎn)生執(zhí)行文件的源代碼的一部分.next執(zhí)行一行源代碼但不進(jìn)入函數(shù)內(nèi)部.step執(zhí)行一行源代碼而且進(jìn)入函數(shù)內(nèi)部.run執(zhí)行當(dāng)前被調(diào)試的程序quit終止gdbRogueWave基本gdb命令(2)watch使你能監(jiān)視一個(gè)變量的值而不管它何時(shí)被改變.break在代碼里設(shè)置斷點(diǎn),這將使程序執(zhí)行到這里時(shí)被掛起.Info顯示相關(guān)信息(infobreak,infofiles)make使
2、你能不退出gdb就可以重新產(chǎn)生可執(zhí)行文件.shell使你能不離開gdb就執(zhí)行UNIXshell命令.內(nèi)容GNU調(diào)試工具ForteDBX調(diào)試監(jiān)測(cè)工具adbmdbDebugging&TuningDebuggingofoptimized,parallelizedcodeSupportGDBcommand:gdbon
3、offsteptofunccommandRunTimeChecking(RTC)Fix&ContinueMTdebuggingDatavisualizationPerformanceAnalyzerImproved!Debugger:RunTimeChe
4、cking(RTC)IntegraldebuggingfeatureOtherfunctionscanbeusedwithRTCAutomaticdetectionofruntimeerrorsMemoryaccesserrorsMemoryleakerrorsMonitorsmemoryusageWorkswithalllanguagesSourcecodenotneededWorkswithmultithreadedcodeRequiresnorecompiling,relinking,ormakefilechangesDebugger:RunTimeCh
5、eckingImproveapplicationqualityDetect&fix"hard-to-find"errorsMemoryaccess,leaks,anduseIntegratedwithdebuggerNorelinkrequiredDebugger:FixandContinueDramaticallyreducestheedit-compile-debugcycleModifysourcecodeClickthe"Fix"toolNorelinkingNoreloadingtheprogramfordebuggingResumerunningpr
6、ogramfromfixlocationDebugger:FixandContinueRTCfindstheerror......youfixitintheeditorandsave......clickthe"Fix"button.........andcontinuedebuggingwithnolengthyrecompile/relinkcycle!Debugger:EasyToVisualizeQuicklyunderstandanddebugcomplexdataarraysandalgorithmsSpecifyingArraySingle-dim
7、ensionalarraysVectorgraphTwo-dimensionalarrayAreagraphNdimensionalarraysAtmost,onlytwoofthosedimensioncanvary.GraphtypesDebugger:MTDebuggingSupportsbothSolaristhreadsandPOSIXthreads"stoptheworld"modeExaminestacktracesofeachthreadResumeallthreadsstepornextaspecificthreadNavigatebetwe
8、enthreadsLockinformationonindividualthreads(sync)Debugger:MTDebugging:ThreadStatusThreadinformation*indicateseventsrequiringuserattention'o'indicatesadbxinternaleventt@num,thethreadidbl@num:thisthreadboundtothedesignatedLWPal@num:thisthreadactiveonthedesignatedLWP"Startfunction"ofthe
9、threadThread