Call value_fetch_lazy when needed in pretty-printers
authorTom Tromey <tom@tromey.com>
Sun, 8 Jul 2018 18:17:36 +0000 (12:17 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 22 Jul 2018 19:20:04 +0000 (13:20 -0600)
commitc51f6a54c28aaf2039f95553ff897338475fe8bf
tree9cb4912c262bed98a5ff4927bc4f50db93715f9a
parent374fd1fd7b9bbefc15c003f14f4229ccbfc1bfc8
Call value_fetch_lazy when needed in pretty-printers

This removes some unused variables, and replaces the calls to
value_contents_for_printing with a call to value_fetch_lazy, when
needed.

gdb/ChangeLog
2018-07-22  Tom Tromey  <tom@tromey.com>

* python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
unused variable.  Call value_fetch_lazy when needed.
* guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
Remove unused variable.  Call value_fetch_lazy when needed.
gdb/ChangeLog
gdb/guile/scm-pretty-print.c
gdb/python/py-prettyprint.c