Program Debugging
Print this page
  • There could be an error in the for loop. So, keep break point at the line 15.

    (gdb)   break 15

    Breakpoint 2 at 0x8048435: file palindrome.c, line 15.

    (gdb)

    •  Continue execution using the command c .

    (gdb) c

    Continuing.

Breakpoint 2, main (argc=2, argv=0xafb79394) at palindrome.c:15

15               if (argv[1][i] != argv[1][length-i]){

  • (gdb)

Prev