User forums > Help

gdb doesn't link to source

<< < (3/4) > >>

sydnytt:
After i downloaded and installed mingw-w64 and directing codeblocks to the new exe's, the problem is no more.

Some of the mingw64 files are in mingw/bin in the codeblocks dir, however it did not help to use them.

Thank you for your help! Haven't done any of this for years.


BlueHazzard:

--- Quote --- the problem is no more.
--- End quote ---
glad to hear :)

don't forget to update also the gdb path, if you haven't it done already


stahta01:

--- Quote from: BlueHazzard on August 19, 2020, 01:33:12 pm ---Hmmm.... all i can find have two root causes:
1) Bug in GDB (I know that version 8.1 is buggy as hell, i use 8.3 )
2) Bitness of executable and gdb do not match...

I do not understand how 2) can happen in an compiler installation with codeblocks... We never had this problem before and quite some people use GDB+ Codeblocks with the standard installation.  It should compile to 64 bit without the -m64 bit flag... The same is for 1)...

--- End quote ---

FYI: Based on the paths the OP installed an 32 bit version of Code::Blocks with MinGW.

Tim S.

sydnytt:

--- Quote ---FYI: Based on the paths the OP installed an 32 bit version of Code::Blocks with MinGW.

Tim S.
--- End quote ---

downloaded package named codeblocks-20.03mingw-setup.exe, as opposed to codeblocks-20.03mingw-32bit-setup.exe

below links in download page:

--- Quote ---NOTE: The codeblocks-20.03mingw-setup.exe file includes additionally the GCC/G++/GFortran compiler and GDB debugger from MinGW-W64 project (version 8.1.0, 32/64 bit, SEH).
--- End quote ---

if you are referring to the PATH=.. part of the log, it does point to the older version of codeblocks 17.xx (install package for that version is also not specifically named as 32bit, however, codeblocks.exe is 32).
However, all the programs running in the logs i posted are from the 20.03 package (C:\codeblocks). 20.03 installed all the tools for 64bit, but did not allow me to compile 64bit.

Anyway, it's all working now. Thanks!

stahta01:

--- Code: ---Set variable: PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Common Files\Propellerhead Software\ReWire;C:\Program Files\Common Files\Propellerhead Software\ReWire;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Users\alex\AppData\Local\Microsoft\WindowsApps

--- End code ---

FYI: Based on the above line you was using the 32 bit MinGW installed with the 32 bit Code::Blocks.
That was why you had issues doing an 64 bit build/debug.

In the future for this type of problems, make sure you have at most one mingw GCC compiler in the PATH!
Edit: And, make sure the toolchain settings is pointing to the correct MinGW GCC compiler.

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version