Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 971
fiercefighter Avatar asked Nov 22 '09 16:11

fiercefighter


People also ask

Does Cygwin have GDB?

In the case of Cygwin, the debugger is GDB, which stands for "GNU DeBugger". This tool lets you run your program in a controlled environment where you can investigate the state of your program while it is running or after it crashes.

How do I activate GDB?

Press and hold the button for at least 2 seconds. Select [PAIRING]. When the watch that you want to pair appears on the screen, follow the on-screen instructions to pair it with your smartphone. After connecting to the watch, specify profile and other settings to complete the pairing.

How do I download GYB on Cygwin?

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. +1 to this.

How do I add a program to GDB?

Use the run command to start your program under GDB. You must first specify the program name (except on VxWorks) with an argument to GDB (see section Getting In and Out of GDB), or by using the file or exec-file command (see section Commands to specify files).


1 Answers

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.

like image 62
Tim Avatar answered Oct 27 '22 03:10

Tim