From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F0243385C421; Fri, 6 Aug 2021 14:38:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F0243385C421 From: "yerimyah1 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/28201] New: Unable to show children and to string pretty-printer values at the same time. Date: Fri, 06 Aug 2021 14:38:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yerimyah1 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 14:38:47 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28201 Bug ID: 28201 Summary: Unable to show children and to string pretty-printer values at the same time. Product: gdb Version: 10.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: mi Assignee: unassigned at sourceware dot org Reporter: yerimyah1 at gmail dot com Target Milestone: --- For example if i create a vector;=20 ``` std::vector aVector { "this", "is", "a", "standard", "list"} ``` in the normal gdb command line i would get=20 ``` p aVector=20 $1 =3D std::vector of length 5, capacity 5 =3D {"this", "is ", "a", "standa= rd", "list"} ``` however in GDB/MI ```=20 -var-create - * "aVector" -- result-class: done name: var21 numchild: 0 value: {...} type: std::vector, std::allocator >, std::allocator, std::allocator > > > thread-id: 1 displayhint: array dynamic: 1 has_more: 1 ``` the to_string value of the std::vector pretty printer is gone and replaced = by "{...}" the values is meant to show the size of the vector and very valuable when debugging. with the help of my mentor i was able to get the relevant part that it is hardcoded to return `{...}` (there may be other parts) that may be relevant. here https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dblob;f=3Dgdb/c-varobj.= c;h=3Df6db3a5d1ba77ad86e7d36a2cd94ef5fdc26069b;hb=3Drefs/heads/master#l478 https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dblob;f=3Dgdb/varobj.c;= h=3Dd0c857a69060644b225f3072b96c90a44b6d1548;hb=3Drefs/heads/master#l2162 thanks --=20 You are receiving this mail because: You are on the CC list for the bug.=