]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix bug in -var-evaluate-expression
authorTom Tromey <tromey@adacore.com>
Thu, 31 Aug 2023 19:58:49 +0000 (13:58 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 7 Sep 2023 20:04:53 +0000 (14:04 -0600)
commitd1369de649a9d19abae1012ef805aaa674314c0c
tree4938931225e3f7155ca257c9fcbe74133d2e5e52
parent78dfcce3174dbb9bd9d3a5898e57a9019dcc38d9
Fix bug in -var-evaluate-expression

This bug points out that if one uses -var-set-visualizer with "None"
-- to disable a pretty-printer for a varobj -- then
-var-evaluate-expression will still use pretty-printing.

This is a combination of bugs.  First, setting the visualizer does not
update the display text; and second, computing the display text should
use "raw" when Python is available but no visualizer is desired.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=11738
Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/testsuite/gdb.python/py-varobj.c
gdb/testsuite/gdb.python/py-varobj.exp
gdb/testsuite/gdb.python/py-varobj.py
gdb/varobj.c