This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199713 - Who such "done"
Summary: Who such "done"
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-26 23:57 UTC by yuriy_lalym
Modified: 2014-11-24 15:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (90.35 KB, image/png)
2011-06-26 23:57 UTC, yuriy_lalym
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yuriy_lalym 2011-06-26 23:57:39 UTC
Created attachment 109119 [details]
screenshot

#include <QtCore/QCoreApplication>

int main(int argc, char *argv[])
{
    int i;
    QString s("Test");
    s = QString::fromLocal8Bit("Привет");
    i = 5;
    i = i + 3;
    s = QString::fromLocal8Bit("Привет");
}

gdb script

define print_qstring
    printf "(QString)0x%x (length=%i): \"",&$arg0,$arg0.d->size
    set $i=0
    while $i < $arg0.d->size
        set $c=$arg0.d->data[$i++]
        printf "%c", (char)$c
    end
    printf "\"\n"
end

Output to debuger console: No command for record ^done
Comment 1 henk89 2014-11-24 15:06:19 UTC
As you typed the command for printing s in the console GDB answered to the command. Having received the answer IDE was unable to detect an outgoing command. This is expected behaviour.