gdbnotes

gdbnotes - gdbnotes.txt print/c $eax print 0x100 print/x...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
gdbnotes.txt Sun Aug 26 16:15:56 2001 1 Starting: gdb gdb <file> gdb -h (lists command line options) Exiting: quit Ctrl-d Note: Ctrl-C does not exit from gdb, but halts the current gdb command General commands run (start your program) kill (stop the program) Breakpoints break FUNCTION (set a breakpoint at the entry to the function) break *ADDRESS (set a breakpoint at the specified address) disable <NUM> (disable the breakpoint with that number) enable <NUM> (enable the breakpoint with that number) clear FUNCTION (clear any breakpoints at the entry to the function) delete <NUM> (deletes the breakpoint with that number) delete (deletes all breakpoints) Working at breakpoints stepi (execute one machine code instruction) stepi <NUM> (execute NUM instructions) step (execute one C statement) nexti (like stepi, but proceed through subroutine calls) nexti <NUM> next until LOCATION (continue running until LOCATION is reached) continue (resume execution) continue <NUM> (continue, ignoring this breakpoint NUM times)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/11/2011 for the course CS 33 taught by Professor Rohr during the Spring '08 term at UCLA.

Ask a homework question - tutors are online