Bug #788

ide: Gdb_MI2 Weird issue with long strings

Added by Miroslav Fidler almost 10 years ago. Updated almost 10 years ago.

Status:NewStart date:06/09/2014
Priority:NormalDue date:
Assignee:Massimo Del Fedele% Done:


Category:-Spent time:-
Target version:-


While implementing scrolling of long values, I have spotted following problem:

#include <Core/Core.h>
#include <plugin/zip/zip.h>

using namespace Upp;

    String s('x', 20);
    for(int i = 0; i < 2; i++) {
        Cout() << s;
        s = "z" + String('x', 250) + "thisistheend";

Now when s is assigned 'long value', "thisistheend" is not displayed at the end of String. GDB seems to return "zxx...x"... (inner '...' by me, outer by GDB).

Interestingly, when I increase the length of long value, the length of 's' increases too, but still the end is missing.

Perhaps it is some setting in MI2 interface?


#1 Updated by Miroslav Fidler almost 10 years ago

  • Assignee set to Massimo Del Fedele

Also available in: Atom PDF