How do I get GDB on Linux?

Julipkq

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

Tìm kiếm

Back
Top