Bug #788

ide: Gdb_MI2 Weird issue with long strings

Added by Miroslav Fidler about 5 years ago. Updated about 5 years ago.

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

0%

Category:-Spent time:-
Target version:-

Description

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

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

using namespace Upp;

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

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?

History

#1 Updated by Miroslav Fidler about 5 years ago

  • Assignee set to Massimo Del Fedele

Also available in: Atom PDF