Thread 1 received signal SIGSEGV, Segmentation fault. This program is supposed to multiply together the numbers 1 * 2 * 3 * 4 * 5, but it has some problems:įirst, build an executable with debugging information: Suppose we have the following program, test.c. If it’s not, click “New”, paste in the address you copied in the previous step, and click OK three times to dismiss each frame. Look to see if the location of your gdb.exe file is already listed – if it is, you don’t need to add anything. Click “Environment Variables.”, then find Path under System variables and click “Edit…”. Click Start, type Environment variables, and select “Edit the system environment variables”). Next, add the location of your gdb.exe file to your Path (if it is a different location than your gcc.exe file). Copy the address where you find the gdb.exe file. The gdb.exe file should be in a \bin folder somewhere within the C:\msys64 folder - you may need to search for it. It may be in the same location as gcc, which for me is C:\msys64\mingw64\bin, but it may be in a different location. Next, you will need to add the gdb.exe location to your Path.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |