From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13181 invoked by alias); 18 Sep 2009 17:18:59 -0000 Received: (qmail 13161 invoked by uid 48); 18 Sep 2009 17:18:58 -0000 Date: Fri, 18 Sep 2009 17:18:00 -0000 From: "jan dot kratochvil at redhat dot com" To: gdb-prs@sourceware.org Message-ID: <20090918171858.10659.jan.kratochvil@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug python/10659] New: pretty-printing: Display vectors of vectors as matrix X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00263.txt.bz2 Vector of vectors is currently displayed as: (gdb) p test $1 = std::vector of length 2, capacity 2 = {std::vector of length 2, capacity 2 = {0, 1}, std::vector of length 2, capacity 2 = {2, 3}} while user suggested something like: (gdb) p test $1 = std::vector of length 2, capacity 2 = {std::vector of length 2, capacity 2 = {0, 1}, std::vector of length 2, capacity 2 = {2, 3}} matrix contents = 0 2 1 3 Testcase: #include #include int main(){ std::vector< std::vector > test(2, std::vector(2,0)); test[0][0]=0; test[0][1]=1; test[1][0]=2; test[1][1]=3; int a=test[1][0]; std::cout << a; } -- Summary: pretty-printing: Display vectors of vectors as matrix Product: gdb Version: archer Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: python AssignedTo: unassigned at sourceware dot org ReportedBy: jan dot kratochvil at redhat dot com CC: gdb-prs at sourceware dot org,pmuldoon at redhat dot com,tromey at redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=10659 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.