Author Topic: Selecting the debugger  (Read 1378 times)

Offline pabristow

  • Multiple posting newcomer
  • *
  • Posts: 62
Selecting the debugger
« 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


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13165
    • Travis build status
Re: Selecting the debugger
« Reply #1 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
(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!]

Offline pabristow

  • Multiple posting newcomer
  • *
  • Posts: 62
Re: Selecting the debugger
« Reply #2 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.


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13165
    • Travis build status
Re: Selecting the debugger
« Reply #3 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.
(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!]