CISC 221 Lecture Notes - Lecture 2: Gnu Debugger, Processor Register, Command Paper

82 views2 pages

Document Summary

You can use the command: break . You can obtain the line numbers from the listings file (. l). You can clear a breakpoint by using the delete . Note: don"t set a breakpoint at the first executed instruction of your program. If you want the debugger to print out the contents of a specific cpu register every time there is a breakpoint, use the command: display/f command. (ie. display/x ). Using breakpoints info breakpoints break linenumber operation exit gdb print description of debugger command cmd. Without cmd prints a list of topics. runs the program. Print a list of all breakpoints and their numbers (the numbers are used for other breakpoint commands) set a breakpoint at line number linenumber. See the listing file (prog. l ) for line numbers. continue list kill delete [bpnum1] [bpnum2] clear linenum. Stepping through the program next i (or just n) stepi (or just i) finish.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents