From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A6EB53858413; Thu, 7 Sep 2023 20:06:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6EB53858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1694117161; bh=XHFLNi9n3eW272Owq/uLWPwWsaDuhAroQOzTtJ8C3y0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=muwxhWBeF6INah5lHjieaMRqfCIDTXIrvMeymLR8OC1KTnVlXfm5QvlOkAvYb2pey 75IiASwTkIIiluK1HicN8mHViILXmlx/jWua4j6odgG1iTbXgvav/k+oQszEbRg1Ho QuyadC8x4PzDOhavYMx/qzM7d/btY/hS6yPzuW3g= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug varobj/18282] Pretty Printers - unable to create variable object (string value from children()) Date: Thu, 07 Sep 2023 20:06:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: varobj X-Bugzilla-Version: 7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D18282 --- Comment #8 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Daa15623fe68b= 3151ed54a7365b5a5226b538851a commit aa15623fe68b3151ed54a7365b5a5226b538851a Author: Tom Tromey Date: Thu Aug 31 13:01:00 2023 -0600 Allow pretty-printer 'children' method to return strings A user noticed that, while a pretty-printer can return Python strings from its "children" method, this does not really work for MI. I tracked this down to my_value_of_variable calling into c_value_of_variable, which specially handles arrays and structures -- not using the actual contents of the string. Now, this part of MI seems bad to me, but rather than change that, this applies the fix to only dynamic varobjs, which is the only scenario where a string like this can really be returned. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D18282 Reviewed-by: Keith Seitz --=20 You are receiving this mail because: You are on the CC list for the bug.=