[Interest] Running qemu as debug service provider in Qt Creator

Thiago Macieira thiago.macieira at intel.com
Tue Oct 5 17:50:23 CEST 2021


On Tuesday, 5 October 2021 06:11:50 PDT Richard Weickelt wrote:
> Hi,
> 
> I want to run a bare metal application in a QEMU environment and debug it
> with gdb using Qt Creator. But I can only see a limited predefined selection
> of debug providers, like openocd, j-link, ...
> 
> Is there no way to run a custom command instead? I expected the "generic"
> provider to cover that usecase, but that seems to be something else.

You can start it manually with qemu and tell it to stop before the first line 
of the application. Then tell Qt Creator to connect to the GDB server that 
qemu created.

Debug > Start Debugging > Attach to Running Server

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering





More information about the Interest mailing list