On Wednesday, March 25, 2015 12:32:30 AM Nikos Chantziaras wrote:
> Note that gdb cannot inspect containers. It doesn't know anything about 
> them.

It can, it's just not pretty:

(gdb) p list1
$1 = {{p = {static shared_null = {ref = {_q_value = 15}, alloc = 0, begin = 0, 
end = 0, sharable = 1, array = {0x0}}, 
      d = 0x61b050}, d = 0x61b050}}
(gdb) p/c ((QString*)list1.d.array).d.data[0]@10
$2 = {72 'H', 101 'e', 108 'l', 108 'l', 111 'o', 32 ' ', 71 'G', 68 'D', 66 
'B', 0 '\000'}

and with missing symbols:

(gdb) p list1
No symbol "list1" in current context.

So I wasn't arguing, just suggesting a way to find out quickly.

-- 
Fernando Rodriguez

Reply via email to