Program Debugging
Print this page
To see the part of the code around the breakpoint use the command list. It displays 10 lines around the current breakpoint.
(gdb)
list
#include<string.h>
main(int argc, char *argv[])
{
int i,length, mid;
if (argc != 2) {
printf("Error in input.\n");
exit(1);
}
(gdb)
Prev
First
|
Next
|
End