Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28889

BareMetal: "Generic" Debug Server Providers can't runing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 9.0.2
    • Debugger
    • None
    • Linux/X11

    Description

      I created Debug Server Providers with Generic type and configred it: add Host and Port properties. Than I try run debugging.

      Expected: QtCreator will launch gdb and connect it to remote server.

      Actual results: QtCreator will try launch empty util for the provider, can't do it, and breaks debugging without starting gdb. 

       

      Unlike others, this type (Generic) does not have a path to the executable utility in the settings (as an example, the provider of OpienOCD type launches "openocd" utility). For Generic provider, the QtCreator should not start the utility - it is supposed to be started separately (on remote host, for example). If I look source code, I see that class GenericGdbServerProvider doesn't have function command(), so parent class GdbServerProvider call dummu function:

       

      // file src/plugins/baremetal/debugservers/gdb/genericgdbserverprovider.cpp
      
      Utils::CommandLine GdbServerProvider::command() const 
      {
          return {};
      } 

      When debugging starts, an attempt to execute this empty command returns an error and debugging stops.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            arhiv6 Verkhovin Vyacheslav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes