How do I get GDB on Linux?
Answer
GDB (Step by Step Introduction)
Answer
GDB (Step by Step Introduction)
- Go to your Linux command prompt and type “gdb”. …
- Below is a program that shows undefined behavior when compiled using C99. …
- Now compile the code. …
- Run gdb with the generated executable. …
- Now, type “l” at gdb prompt to display the code.
- Let’s introduce a break point, say line 5.