User forums > Help

Debugger finished with status 1

<< < (2/3) > >>

BlueHazzard:
i see gdb crashing a lot lately...

--- Code: ---info frame
--- End code ---
crashes my debugger on windows (mingw64)

cooboo:
Well at least It's not just be being daft I guess :P

Seems to crash in command prompt too.

maybe I should try an older version or something.

BlueHazzard:
Probably it is this bug...
https://sourceware.org/bugzilla/show_bug.cgi?id=23472

i have gdb 8.1 and this seems to be fixed in 8.2
lets look if i can find 8.2 to confirm

cooboo:
I'm probably going to sound like a total newbie because I am, but how would I go about updating the gdb my codeblocks uses? it all self installed via a bundled setup file for me.

Im assuming its not as simple as replacing the gdb.exe in  C:\Program Files\CodeBlocks\MinGW\bin with a different gdb.exe

BlueHazzard:
Ok, i can confirm. With gdb 8.3 everything works...
I use the gdb from msys2 package...


--- Quote ---I'm probably going to sound like a total newbie because I am, but how would I go about updating the gdb my codeblocks uses? it all self installed via a bundled setup file for me.
--- End quote ---
You download the compiler and gdb you want and set up codeblocks paths...

for example if you want to use msys2 (cool because it has a package manager):
!WARNING! This will overwrite your compiler settings, and you will have to recompile everything you want to use in codeblocks
(sadly satha has not updated his wiki page ;( https://github.com/stahta01/MSys2_CodeBlocks_Projects/wiki/Setup-CodeBlocks-to-use-MSys2-MinGW-GCC )
1) Download msys2 and install it
2) Install the mingw compiler with pacman (as described by the link above)
3) Install gdb with pachman (google for it, you will need pacman later )
4) Point the codeblocks compiler to it:
4.1) Settings->Compiler->Select "GNU GCC" from the drop down->Toolchain executables->Compilers installation directory
for me this is

--- Code: ---C:\msys64\mingw64\bin
--- End code ---
4.2) The Program files should be somehting like this:

--- Code: ---C-Compiler: x86_64-w64-mingw32-gcc.exe
C++ Compiler: x86_64-w64-mingw32-g++.exe
...
--- End code ---
This files should be found int the top given folder
--- Code: ---C:\msys64\mingw64\bin
--- End code ---
4.3) Hit ok
5) Setup the debugger
5.1) Settings -> Debugger->Default->Executable path->

--- Code: ---C:\msys64\mingw64\bin\gdb
--- End code ---
6) Rebuild everything
7) Have fun

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version