Bug#846612: Subj

Sylvestre Ledru sylvestre at debian.org
Thu Jan 12 16:02:25 UTC 2017


This is a different bug (display of a variable)
Could you open a new bug instead?

Le 12/01/2017 à 00:54, Askar Safin a écrit :
> reassign 846612 lldb-3.9 1:3.9.1-2
> thanks
> 
> The bug is still present in sid in lldb-3.9 1:3.9.1-2 and possibly in lldb-4.0. Steps to reproduce in lldb-3.9:
> 
> root at ideal-os:/# cat o.cpp
> #include <vector>
> 
> int
> main (void)
> {
>   std::vector<int> a;
>   a.push_back (0);
> }
> root at ideal-os:/# clang++-3.9 -g -o o o.cpp         
> root at ideal-os:/# lldb-3.9 ./o
> (lldb) target create "./o"
> Current executable set to './o' (x86_64).
> (lldb) b main
> Breakpoint 1: where = o`main + 12 at //o.cpp:6, address = 0x000000000040091c
> (lldb) r
> Process 527 launched: './o' (x86_64)
> Process 527 stopped
> * thread #1: tid = 527, 0x000000000040091c o`main + 12 at //o.cpp:6, name = 'o', stop reason = breakpoint 1.1
>     frame #0: 0x000000000040091c o`main + 12 at //o.cpp:6
>    3    int
>    4    main (void)
>    5    {
> -> 6      std::vector<int> a;
>    7      a.push_back (0);
>    8    }
> (lldb) n
> Process 527 stopped
> * thread #1: tid = 527, 0x0000000000400928 o`main + 24 at //o.cpp:7, name = 'o', stop reason = step over
>     frame #0: 0x0000000000400928 o`main + 24 at //o.cpp:7
>    4    main (void)
>    5    {
>    6      std::vector<int> a;
> -> 7      a.push_back (0);
>    8    }
> (lldb) 
> Process 527 stopped
> * thread #1: tid = 527, 0x0000000000400945 o`main + 53 at //o.cpp:8, name = 'o', stop reason = step over
>     frame #0: 0x0000000000400945 o`main + 53 at //o.cpp:8
>    5    {
>    6      std::vector<int> a;
>    7      a.push_back (0);
> -> 8    }
> (lldb) p a
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ImportError: No module named lldb.embedded_interpreter
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> NameError: name 'run_one_line' is not defined
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> NameError: name 'run_one_line' is not defined
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> NameError: name 'run_one_line' is not defined
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> NameError: name 'run_one_line' is not defined
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> NameError: name 'run_one_line' is not defined
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> NameError: name 'run_one_line' is not defined
> (std::vector<int, std::allocator<int> >) $0 = size=1 {
>   std::_Vector_base<int, std::allocator<int> > = {
>     _M_impl = {
>       _M_start = 0x0000000000615c20
>       _M_finish = 0x0000000000615c24
>       _M_end_of_storage = 0x0000000000615c24
>     }
>   }
> }
> (lldb)
> 
> ==
> Askar Safin
> http://vk.com/safinaskar
> 



More information about the Pkg-llvm-team mailing list