Search code examples
debugginggdbcygwin

How do I to add gdb to cygwin?


How do I add gdb to cygwin? I have downloaded gdb tar package for cygwin from sourceforge. When extracting it there were many files, so I pasted the gdb.exe file from the package into the bin folder of cygwin. However, it's not working.


Solution

  • When you installed Cygwin the first time, you should have been given a setup program. If you have lost it, you can get it from the Cygwin website. Run this again and select gdb for installation.