[lldb-dev] one line output for 'print' and 'display'

David Froger david.froger.ml at mailoo.org
Thu Jul 9 23:39:18 PDT 2015


Hello,

With my LLDB version lldb-300.2.53, printing a array is formatted like this:

    (int [10]) $0 = {
      [0] = 0
      [1] = 1
      [2] = 2
      [3] = 3
      [4] = 4
      [5] = 5
      [6] = 6
      [7] = 7
      [8] = 8
      [9] = 9
    }

But I would link a compact printing on one line, like with GDB:

    $1 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}

Where I can change this formatting setting?

I have the same question for the 'display' command.

I already asked the question on stackoverflow:
    http://stackoverflow.com/q/31328204/744629

Thanks for reading!

Best regards,
David




More information about the lldb-dev mailing list