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

  1.                #include<string.h>
  2.                main(int argc, char *argv[])
  3.                    {
  4.                               int i,length, mid;
  5.                               if (argc != 2) {
  6.                                     printf("Error in input.\n");
  7.                                              exit(1);
  8.                        }

(gdb)

   
Prev