Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Full GDB console
Forum Updated to NodeBB v4.3 + New Features

Full GDB console

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 3 Posters 537 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gino
    wrote on last edited by Gino
    #1

    In Qt creator you can show a gdb mi console via the Debugger log window.
    But this is still mi output. I know you can disable this at startup by passing an option to gdb, so that at least this extra mi formatting is removed. But this still isn't a real gdb console. (with emacs keybindings etc.)

    GDB has a feature to start a new console in a terminal, see https://sourceware.org/gdb/onlinedocs/gdb/Interpreters.html look at the bottom.

    See also this presentation from slide 4 onwards: https://gcc.gnu.org/wiki/cauldron2016?action=AttachFile&do=view&target=Caudron2016-PedroAlves-GDBstatus.pdf

    As a poor mans solution, I tried this by typing in the above debugger log window "new-ui console /dev/pts/1" whith /dev/pts/1 the tty I want to use, but this doesn't really work well.

    I know Eclipse implements this in the CDT plugin. (see https://wiki.eclipse.org/CDT/Archive/FullGDBConsole)

    Anynody has an idea if it is difficult to add this feature also to QtCreator myself or if we could request this?
    Or could we make it work reliable somehow with the gdb new-ui command ?

    Best regards,

    Gino

    aha_1980A 1 Reply Last reply
    0
    • G Gino

      In Qt creator you can show a gdb mi console via the Debugger log window.
      But this is still mi output. I know you can disable this at startup by passing an option to gdb, so that at least this extra mi formatting is removed. But this still isn't a real gdb console. (with emacs keybindings etc.)

      GDB has a feature to start a new console in a terminal, see https://sourceware.org/gdb/onlinedocs/gdb/Interpreters.html look at the bottom.

      See also this presentation from slide 4 onwards: https://gcc.gnu.org/wiki/cauldron2016?action=AttachFile&do=view&target=Caudron2016-PedroAlves-GDBstatus.pdf

      As a poor mans solution, I tried this by typing in the above debugger log window "new-ui console /dev/pts/1" whith /dev/pts/1 the tty I want to use, but this doesn't really work well.

      I know Eclipse implements this in the CDT plugin. (see https://wiki.eclipse.org/CDT/Archive/FullGDBConsole)

      Anynody has an idea if it is difficult to add this feature also to QtCreator myself or if we could request this?
      Or could we make it work reliable somehow with the gdb new-ui command ?

      Best regards,

      Gino

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Gino,

      I know this answer comes late, but you should track and vote for QTCREATORBUG-19870 which is the official suggestion for that feature.

      Regards

      Qt has to stay free or it will die.

      StokestackS 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @Gino,

        I know this answer comes late, but you should track and vote for QTCREATORBUG-19870 which is the official suggestion for that feature.

        Regards

        StokestackS Offline
        StokestackS Offline
        Stokestack
        wrote on last edited by
        #3

        @aha_1980 Thanks for updating the bug report and linking to it here. This is such a fundamental feature in an IDE that I'm disappointed to see it still languishing.

        aha_1980A 1 Reply Last reply
        0
        • StokestackS Stokestack

          @aha_1980 Thanks for updating the bug report and linking to it here. This is such a fundamental feature in an IDE that I'm disappointed to see it still languishing.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi @Stokestack,

          it seems you already did some investigation on possible implementations of this feature.

          Please join the discussion on the linked bugreport, maybe there is really an easy solution?

          One year ago, we didn't have the integrated Terminal in Creator, until someone decided to just do it. So keeping the suggestions alive is always recommended ;)

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved