Menu

#1494 Code Blocks codeblocks-20.03-setup.exe install has a problem with gdb

Undefined
open
nobody
gdb (10)
Bug_Report
2025-04-01
2024-07-12
No

I had our computing environment admins install the current TDM-GCC-64 package at the default C: location and subsequently install Code blocks package codeblocks-20.03-setup.exe.

Once Code Blocks was set to find the compiler package at C:\TDM-GCC-64, (that needed to be set, although it was detected during install) the compilations worked flawlessly. But gdb from TDM-GCC-64 would fault with an error code of 01. I tried every permutation of where gdb was located in the package (32 bit, 64bit) and several videos to set it up properly, with no success.

GDB from TDM-GCC-64 did run independently on the binary that caused the fault in the gdb run within Code::Blocks mentioned above. So that part itself was working.

I later tried a re-install with the codeblocks-20.03-setup-nonadmin.exe package in my Documents folder. Once the toolchain executables where set up identically to the failed install, both the compiler and gdb worked as expected. There was no change to the TDM-GCC-64 package required for this to happen.

I have no idea why one would work and the other would not. The only message I got from the build window was that gdb failed with an error code of 01. It was not indicated as an exit code from the inferior process. It appeared to be an error code from gdb itself. The fact that gdb worked independently on the binary, and that the noadmin package works with gdb and codeblocks-20.03-setup.exe doesn't, leads me to belive the problem is there.

Perhaps it's just a matter of always having to use the no-admin package for regular user accounts. If so, you may want to state explicitly that it is a necessity on the downloads page.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.