欢迎来到天天文库
浏览记录
ID:20968645
大小:1.04 MB
页数:56页
时间:2018-10-18
《solaris调试技术》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Solaris下调试技术综述内容GNU调试工具ForteDBX调试监测工具adbmdb基本gdb命令(1)file装入想要调试的可执行文件.kill终止正在调试的程序.list列出产生执行文件的源代码的一部分.next执行一行源代码但不进入函数内部.step执行一行源代码而且进入函数内部.run执行当前被调试的程序quit终止gdbRogueWave基本gdb命令(2)watch使你能监视一个变量的值而不管它何时被改变.break在代码里设置断点,这将使程序执行到这里时被挂起.Info显示相关信息(infobreak,infofiles)make使
2、你能不退出gdb就可以重新产生可执行文件.shell使你能不离开gdb就执行UNIXshell命令.内容GNU调试工具ForteDBX调试监测工具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
此文档下载收益归作者所有