Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why would using "qDebug() << someValue;" cause gdb in Eclipse to hang with "(Running : User Request)"?
Forum Updated to NodeBB v4.3 + New Features

Why would using "qDebug() << someValue;" cause gdb in Eclipse to hang with "(Running : User Request)"?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.5k 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.
  • S Offline
    S Offline
    styne666
    wrote on last edited by
    #1

    Hello all,

    I'm trying to print out availableMibs() using this loop...
    @QList<int> myAvailableMibs = QTextCodec::availableMibs();

    for (i = 0; i < myAvailableMibs.size(); i++) {
    currentCodec = QTextCodec::codecForMib(myAvailableMibs.at(i));
    qDebug() << myAvailableMibs.at(i) << "=" << currentCodec->name();
    }@
    ...which is in a static method in a user-defined class which is called by my main().

    When I run the PE from the command line it works fine. However when I try and run it in Eclipse with the MinGW gdb it runs up until a certain index in myAvailableMibs then the thread goes into a

    @Thread[1] 0 (Running : User Request)@

    state which it never returns from.

    @qDebug();@
    ...on its own returns fine so I believe its something to do with the << operator. Changing the number of << operators used in that statement changes the position in the QList at which it enters the "(Running : User Request)" state, but I can't find any direct correlation between the number of << operators and the position in the QList.

    The only clue I can see is is the
    @Thread[1] 0 (Running : User Request)@
    message in the Debug panel. I am actually trying to solve another problem with actual Mib values which this is hindering.

    Does anyone have any thoughts or suggestions (other than don't use the gdb in Eclipse)?

    Many thanks,
    Sam

    [EDIT: code formatting for error to avoid superscript, Volker]

    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