This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/21208] New: Inspecting std:set causes gdb to hang when using gdb/mi interface and pretty printing
- From: "xhpohanka at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 01 Mar 2017 09:47:22 +0000
- Subject: [Bug mi/21208] New: Inspecting std:set causes gdb to hang when using gdb/mi interface and pretty printing
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21208
Bug ID: 21208
Summary: Inspecting std:set causes gdb to hang when using
gdb/mi interface and pretty printing
Product: gdb
Version: 7.12.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: mi
Assignee: unassigned at sourceware dot org
Reporter: xhpohanka at gmail dot com
Target Milestone: ---
Created attachment 9865
--> https://sourceware.org/bugzilla/attachment.cgi?id=9865&action=edit
gdb log
Following code causes problem to mi interpreter with pretty printing enabled
#include <set>
#include <string>
using namespace std;
int main()
{
set<string> foo; // non POD type needed here
foo.insert("bar");
return 0;
}
Following commands can be used to reproduce the issue
gdb --interpreter=mi ./test
br main
-enable-pretty-printing
-exec-run
-var-create - * foo
-var-list-children var1
Listing children of foo causes very long loop that sometimes never finishes.
Detailed log is attached.
--
You are receiving this mail because:
You are on the CC list for the bug.