Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: pabristow on May 05, 2016, 06:56:31 pm

Title: Selecting the debugger
Post by: pabristow on May 05, 2016, 06:56:31 pm
I have several versions of GCC and Clang compilers installed and used to build targets, each has a version of debugger gdb.exe.

How do ensure the the matching version is used for each build target?

Or should I just select one in Settings, debugger, for example

C:\Program Files\mingw-w64\x86_64-5.3.0-win32-seh-rt_v4-rev0\mingw64\bin\gdb.exe

(which is the most recent version)

and assume that this will work for all the compiler versions?

But is the Clang debugger different from GCC?

Thank you.  Paul

Title: Re: Selecting the debugger
Post by: oBFusCATed on May 05, 2016, 08:32:45 pm
1. Make different configs for the debuggers in Settings -> Debugger
2. Select the proper debugger in the Settings -> Compiler -> Toolchain executable
3. Select Debug -> Active debugger -> Target's default
Title: Re: Selecting the debugger
Post by: pabristow on May 10, 2016, 03:36:16 pm
Should I have created a new debug configuration for each gcc version?

GCC530_debugger, GCC492_debugger ... with the probably respective .gdb.exe

(And I'm not sure which gcc debug to use for each Clang, but that's probably a question for elsewhere).

Thanks.

Title: Re: Selecting the debugger
Post by: oBFusCATed on May 10, 2016, 09:00:51 pm
If I were you I'd use the latest version of gdb for all at first.
For clang I don't know.