News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Selecting the debugger

Started by pabristow, May 05, 2016, 06:56:31 PM

Previous topic - Next topic

pabristow

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


oBFusCATed

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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

pabristow

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.


oBFusCATed

If I were you I'd use the latest version of gdb for all at first.
For clang I don't know.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]