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. GDB "non-stop mode" in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

GDB "non-stop mode" in Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 1.7k Views
  • 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.
  • T Offline
    T Offline
    toralf
    wrote on last edited by
    #1

    Is there any way I can use gdb's "non-stop mode" - see https://sourceware.org/gdb/onlinedocs/gdb/Non_002dStop-Mode.html - when debugging in Qt Creator?

    I tried adding

    set non-stop on
    

    to Additional Startup Commands in Options->Debugger->GDB, but after this, debug sessions seemed to get completely stuck; execution wasn't interrupted at break-points, and the Stop Debugger button was unable to stop the gdb process. The following was displayed in the status view

    NOTE: INFERIOR STILL RUNNING IN STATE InferiorRunOk.
    >100^error,msg="Target is executing."
    dCOOKIE FOR TOKEN 100 ALREADY EATEN (InferiorRunOk). TWO RESPONSES FOR ONE COMMAND?
    sExecutable failed: Target is executing.
    

    I'm using Qt Creator 3.2.2.

    1 Reply Last reply
    0
    • roamerR Offline
      roamerR Offline
      roamer
      wrote on last edited by
      #2

      By try and error, I found out that you should switch to the right "Thread" in the threads drop-down list to be able to use gdb properly.
      What I did was to enter the command "set non-stop on" in "Additional Startup Commands" of the debugger configuration and catch the right thread.

      That being said I am no expert on this matter, as matter of fact I got to know this "non-stop mode" for five minutes. So don't blame me if it does not respond for you. (for me it did with Qt Creator 3.6.0 and gdb 7.9)

      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