DOC PREVIEW
FSU COP 4342 - Data Display Debugger

This preview shows page 1-2-3-4-5-6 out of 17 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

More tools: DDDThe Data Display Debugger (DDD) is a graphical front-end for GDBand other command line debuggers.From DDD you can execute all of the GDB commands.It also has a graphical interface which displays GDB commands,shows source code, shows executions, and allows to choose commonoptions for commands.Unix Tools: Program Development 6Unix Tools: Program Development 6DDD featuresDDD shows four different windows:A data window to display variables.Source window to display source code.Machine code window to display disassembled machine codeUnix Tools: Program Development 6DDD featuresGDB console where conventional gdb commands can be typed.DDD also has other panels which include common commands thatcan be selected with the mouse.Unix Tools: Program Development 6Unix Tools: Program Development 6Using the DDD Source WindowCan set a breakpoint by using the right mouse button andpositioning the cursor to the left of a source code line.Can instantly view the value of a variable by placing the mouseover it (look at the very bottom of the display.)Can highlight a variable and select to print or display its value byusing the options at the top.Unix Tools: Program Development 6Using the DDD Data WindowTo have a variable with its value appear in the data window as adisplay:A user can highlight a variable in the source window and thenclick on the display button.A user can double click on a variable in the source window.Unix Tools: Program Development 6diffThe diff Unix utility compares two files and displays the differencesbetween the two files. The differences are displayed with an ed-likenotation indicating what changes are needed to modify the first file tomake it similar to the second.diff is very useful in shell scripts to detect differences betweenexpected output and actual output.Unix Tools: Program Development 6diff Output (UPT 11.1)Diff output consists of a list of changes.General form consists of a sequence of:commandslinesUnix Tools: Program Development 6diff Output (UPT 11.1)Commands are of the form (a for append, c for change, and d fordelete):linenums [acd] linenumsLines from the first file are preceded by “<”. Lines from thesecond file are preceded by “>”.diff -r can be recursively to compare whole directories trees.Unix Tools: Program Development 6diff Exampletmp1.txt:catdogmousetmp2.txt:catmousetmp3.txt:dogmousecow% diff tmp1.txt tmp2.txt2d1< dog% diff tmp2.txt tmp3.txt1d0< cat3a3> cow% diff tmp2.txt tmp3.txt1c1< cat---> dog2a3> cowUnix Tools: Program Development 6Patch (UPT 20.9)Patch is a Unix utility that takes diff output and applies the commandsto make the first file have the same contents as the second file.Updates to free software are often accomplished using patch. Oftenthe differences between versions of files is much smaller than the filesthemselves.Unix Tools: Program Development 6cmpThe cmp Unix utility just returns a status indicating if the files differ.Exit status Meaning----------- -------0 Files are identical1 Files are different2 An error occurredThe cmp utility is often used when comparing two binary files since itis typically quicker than diff.You can also specify -s to make cmp silent when it finds a difference(by default, it displays the byte and line number where the firstdifference was found.)Unix Tools: Program Development 6Configuration Management SystemsDefinitely not the same as a Content Management System!Configuration Management Systems are however quite similar toContent Management Systems (CMSs):Configuration Management Systems always provide a historymechanism, as do most CMSs.Provides controlled access by different users to shared files.Unix Tools: Program Development 6Configuration Management SystemsSCCS – Source Code Control System. This is now deprecated. Itkept the original files, and the deltas to get to the currentversion(s) of code.RCS – Revision Control System. Still popular. It keeps the mostrecent version(s) of files, and the deltas to take you back to olderversion(s).CVS – Concurrent Version System. Quite popular. Actually usesRCS underneath.subversion – Also quite popular, and is a strong competitor withCVS. Directories and file meta-data are also kept under versioncontrol. Commits are also truly atomic.Unix Tools: Program Development 6gprofThe gprof Unix utility produces an execution profile of the call graphof a program.The profile is useful for finding out where most of the time is spentduring the execution of your program.A gmon.out file will be produced as a side effect A developer can usethis information to tune the time-consuming portions of along-running program.Unix Tools: Program Development 6gprofYou can have a program instrumented to collect data that can beprocessed by gprof by using the -pg option when compiling with gcc:gcc -pg -c XYZ.cA gmon.out file will be produced as a side effect of running yourprogram.You can obtain the profile from the gmon.out file by running thefollowing command:gprof -bUnix Tools: Program Development


View Full Document

FSU COP 4342 - Data Display Debugger

Download Data Display Debugger
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Data Display Debugger and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Data Display Debugger 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?