Program Debugging
Print this page
It may not be necessary to keep the break point in the above part of the program. So we will see the code around line 15.
(gdb)
list 15
}
length = strlen(argv[1]);
mid = length/2;
for (i=0; i<=mid; ++i){
if (argv[1][i] != argv[1][lengthi]){
printf("\"%s\" is not a palindrome.\n", argv[1]);
exit(0);
}
}
(gdb)
Prev
First
|
Next
|
End