This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/16086] New: MI data-evaluate-expression wrong repeat counts


https://sourceware.org/bugzilla/show_bug.cgi?id=16086

            Bug ID: 16086
           Summary: MI data-evaluate-expression wrong repeat counts
           Product: gdb
           Version: 7.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: forum at emblocks dot org

If I have a char[512] and every thing is cleared I get

value="'\\000' <repeats 511 times>"

So the "\\000' also counts.

Now I make member char[100] = 1 and now I get:

value="'\\000' <repeats 100 times>, \"\\001\", '\\000' <repeats 410 times>"

Which will give us

          1  + 100             +         1 +       1 +   410 = 513

The first <repeats 100 times> should be 99 or the last should be 411.

This is not to parse.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]