[Qt-creator] Remote debugging - Compiler set

Vidhya Arun svidhyapria at gmail.com
Tue Jul 7 12:07:22 CEST 2020

Hello Qt experts,

 I had developed a remote debugging plugin for Qt creator version 4.7

Now Im trying to port the same plugin to the latest version of Qt creator
4.12 and I find most of the interfaces obsolete.

I ended up modifying most of them with success but stuck with setting the
compiler C/C++ as highlighted below

Ideally, I want the compilers to be set for x86 remote debugging as

C: GCC( C, x86 64bit in /usr/bin)

 C++: GCC(C++,X86. 64 bit in /usr/bin )

And below values for remote arm machines

C: GCC(C, arm 32 bit in /usr/bin)

C++: GCC(C++, arm 32 bit in /usr/bin)

In the above screenshot, I have manually changed the C++ compiler to the
expected output.

A similar value is expected to be updated automatically for both C and C++

Below is the code used which worked fine with earlier versions:

// for C compiler

ToolChain *tc = new


ProjectExplorer::ToolChainKitAspect::setToolChain(k, tc);

 // for C++ compiler

ToolChain *tcc = new


ProjectExplorer::ToolChainKitAspect::setToolChain(k, tcc);

Can someone please guide here on the proper interfaces to be used ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200707/f07fe549/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 26274 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200707/f07fe549/attachment-0001.jpg>

More information about the Qt-creator mailing list