Program Debugging
Print this page
  • Start the execution by the command run madam

    (gdb) run madam

    Starting program: palindrome madam

    Breakpoint 1, main (argc=2, argv=0xafb79394) at

    palindrome.c:7

7               if (argc != 2) {

(gdb)

  • Program is stopped at the line 7.

  • Now we can keep more break points or execute the program step by step.
  • We will go for keeping more break points. We have to decide where to keep break points?
 
Prev