User forums > Help
No stdlib, custom startup code - GDB doesn't work
Mr.Madguy:
--- Quote from: BlueHazzard on April 12, 2023, 09:54:06 pm ---some version of gdb have a bug where they crash in assembly window. This is a known bug in gdb and should be fixed in the last versions (i think version 8.1 had the bug, but i am not sure)
--- End quote ---
It's default version, provided in Code::Blocks 20.03 distribution. May be it would be good idea to change it? Is it safe to download newer version here or some specific version is compatible with Code::Blocks?
Pecan:
I was successful using gdb.exe version 8.1 with mingw 7.
Also successful using gdb version 10 with mingw 8.1 .
All of this was used on windows 10.
Mr.Madguy:
--- Quote from: Pecan on April 13, 2023, 06:27:47 pm ---I was successful using gdb.exe version 8.1 with mingw 7.
Also successful using gdb version 10 with mingw 8.1 .
All of this was used on windows 10.
--- End quote ---
I'm new to this software. Where it's safe to download it? Troyans are reported by VirusTotal very often in 32bit versions of MinGW. Is it safe to download here?
Pecan:
Sorry, my experience with gdb is 64 bit.
But my guess is that msys2 has a 32bit gdb that you can try and it's pretty safe. Just ask VirusTotal (https://www.virustotal.com/gui/home/upload) to check it out.
Though ChatGPT references running it from the terminal, you can also run it within codeblocks. Just add the location of msys2 gdb.exe into the path before running CodeBlocks.
Or run CodeBlocks from a .cmd file with the first item in the path as the location of Msys2 gdb.
Mr.Madguy:
I personally like this solution, because it's distributed as complete toolkit, that looks very similar to one, that is distributed with Code::Blocks itself. I guess, I can trust it, because it's referenced by GCC's official site.
But I still have two problems:
1) Omitting unused export section in exe file
2) Omitting unneeded import ordinal hints
I guess, ld.exe is responsible for this task. I've studied it's command line options and couldn't find any way to achieve my goal. So, I guess, I'll have to deal with it. #2 problem can possibly be fixed via using different import libraries.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version