GDB Debugger Commands with Example Code
Run Sanfoundry’s sample source file gfile.c and do the following under GDB control: 1. Set breakpoint at main() 2. Run the program now (it should stop at main) 3. Single step once 4. Show the content of gfile.c 5. Show the content of main() function 6. Show stack frames 7. Show stack frames and local … Read more