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 python/13363] gdb crash when I try to print a std::queue inpython pretty printer


http://sourceware.org/bugzilla/show_bug.cgi?id=13363

--- Comment #1 from Phil Muldoon <pmuldoon at redhat dot com> 2011-10-31 12:34:35 UTC ---
I tried reproducing this today with the current repository HEAD, but I cannot
reproduce it.  Do you have a custom pretty-printer? What is stl.gdb?

(gdb) list
1    #include <queue>
2    #include <string>
3    
4    int main()
5    {
6        std::queue<std::string> q;
7        q.push("a");
8        q.push("b");
9        
10        return 0;
(gdb) b 10
Breakpoint 1 at 0x400aac: file repo.cc, line 10.
(gdb) r

Breakpoint 1, 
main () at repo.cc:10
10        return 0;
(gdb) py print 3
3
(gdb) p q
$1 = std::queue wrapping: std::deque with 2 elements = {"a", "b"}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]