]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Put pretty-printers to_string output in varobj result
authorTom Tromey <tromey@adacore.com>
Thu, 26 May 2022 14:33:05 +0000 (08:33 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 28 Mar 2023 18:17:58 +0000 (12:17 -0600)
commit3e8154778baf4df222d95e43a2c8fefdb17305f7
tree71ece63375006caf9d3b5bc9aa81666125c1be06
parent7cd38c3c566502906ba3a6c214cc30cc5aadbda4
Put pretty-printers to_string output in varobj result

PR mi/11335 points out that an MI varobj will not display the result
of a pretty-printer's "to_string" method.  Instead, it always shows
"{...}".

This does not seem very useful, and there have been multiple
complaints about it over the years.  This patch changes varobj to emit
this string when possible, and updates the test suite.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=11335
gdb/doc/gdb.texinfo
gdb/testsuite/gdb.python/py-mi.exp
gdb/testsuite/lib/mi-support.exp
gdb/varobj.c