gdb package not appearing in Cygwin setup - c

I need to write some programs in C, so I've downloaded and installed cygwin and Eclipse Neon cpp.
I've installed the required Cygwin packages and my C programs are compiling and running but I can't debug them because GDB isn't installed.
I get "Error with command: gdb --version" when I try to debug in Eclipse.
I've opened the Cygwin setup again, searched but there's no GDB in the packages (Picture of the installation) list. How can I add the GDB package to the Cygwin setup and install it so that Eclipse can use it?
The difference between my question and the one that is suggested is that I entered the setup but can't find the package.
I'm running Windows 10, Eclipse Neon.1a Release 4.6.1 and Cygwin 2.6.0
Thanks

Related

GDB stuck at “Configuring GDB Aborting configuring GDB”

I've installed (OSX Mojave 10.14.6.) Eclipse CDT and GNU MCU Eclipse plugin and finaly GNU Tools for ARM. My goal is to build and debug ARM code using GDB (arm-none-eabi-gdb).
I've created a Hello World project for Arm, which builds ok - but, debugging seems not to work with GDB (that comes with the Arm package). GDB gets stuck:
I have set the proper paths in Eclipse to arm-none-eabi-gdb.
I have signed the arm-none-eabi-gdb (with the same certificate that I used to sign GDB installed via brew into /usr/local/bin/gdb the day before - and it worked!).
I have also tried running Eclipse as root from command line.
Nothing helps.
The message is "Configuring GDB Aborting configuring GDB".
What to do?
Probably what is going on here is that you built to a given target (ARM based) and you're trying to run it (with gdb) on your mac (x86).
You'll need an emulator or QEMU to properly run on your mac or maybe a real board.

How can I compile tsschecker for Windows?

I'm trying to compile the C program tsschecker for Windows(on my Mac). I installed mingw-w64 with brew install mingw-w64, but I'm not sure how to use it to compile the program for Windows.
The Github repo for tsschecker includes instructions to compile for macOS and Linux(using make), but not Windows(but it includes Windows in the compatibility list).
I have access to a Windows machine if needed.
How can I compile tsschecker for Windows?

Where do g++, make and GDB get installed with MinGW?

Please note: Although I'm specifically talking about the Eclipse CDT plugin, I'm almost 100% confident that any Windows/C/MinGW programmer can answer this question.
I'm on Windows 7 and am trying to write and compile a simple "Hello, C!" C application using Eclipse's CDT plugin. I'm reading their docs which state that having GCC installed is a prerequisite.
I just installed MinGW, making sure to include the following packages:
mingw-developer-toolkit
mingw32-base
mingw32-gcc-g++
msys-base
Back in the CDT docs (under the section titled Windows configuration), it states that I need to add g++, make and GDB to my PATH.
I'm wondering where MinGW installs these utilities, so that I can add them to my system PATH, and make the Eclipse CDT recognize their location at startup.
When using the Eclipse CDT plugin, you need GCC and its 3 specific utilities installed locally. These three utilities are: g++, make and gdb.
On Windows you can choose to install these utilities via Cygwin or MinGW. For a MinGW-based solution, go to their site and download the MinGW Package Manager. Then open the manager and install the following packages:
mingw-developer-toolkit
mingw32-base
mingw32-gcc-g++
msys-base
Then go to File >> Apply Updates and apply them. This will install the 3 utilities to the following directories on your machine:
C:\MinGW\bin\g++
C:\MinGW\bin\gdb
C:\MinGW\msys\1.0\make
Add these 3 binaries to your system PATH, restart Eclipse and you are all set.

debug c with eclipse and get error

I'm using Eclipse for C programming as I've installed the C/C++ plug-ins from the 'Help' menu but when I go to debug I get the error below. I've downloaded and installed GDB for mac and if I type 'gdb' in bash I go into the app. How do I get eclipse to recognise gdb?
"Error while launching command: gdb --version"
EDIT: I just need to know where the location of the gdb files are on the mac.

Program "gcc" not found in PATH with Eclipse CDT

I cannot seem to figure out how to use Eclipse CDT.
I am on Mac OS X, and am trying to print "Hello World" in C but I get an error:
Program "gcc" not found in PATH.
What can I do to use C in Eclipse?
I had the same problem. It may be because you don't have GCC compiler installed on your computer.
On OSX, you just have to open the Terminal and check which gcc. If it doesn't return a path, then install GCC from here.
Once installed, this command should return the path :
I just had to restart Eclipse and everything worked well then.
Have you installed XCode on your machine
update
I would suggest following this tutorial to install brew. You can skip the ruby part if you don't need it.
This is how i got rid of it.
Install the MinGW.
Select all files in the Basic Setup and select apply the changes.
Select new C++ Project You will be able to see "MinGW GCC" in the toolchain section select the same and create project.

Resources