public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Allow a pretty-printer without a to_string method
@ 2018-09-10 16:47 sergiodj+buildbot
  2018-09-10 16:49 ` *** COMPILATION FAILED *** Failures on Debian-s390x-native-extended-gdbserver-m64, branch master *** BREAKAGE *** sergiodj+buildbot
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: sergiodj+buildbot @ 2018-09-10 16:47 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 332cf4c9251a31f0addc2ce2970c9a8bb0c16f96 ***

Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 332cf4c9251a31f0addc2ce2970c9a8bb0c16f96

Allow a pretty-printer without a to_string method

PR python/16047 points out that, while the documentation says that the
to_string method is optional for a pretty-printer, the code disagrees
and throws an exception.  This patch fixes the problem.  varobj is
already ok here.

Tested on x86-64 Fedora 26.

gdb/ChangeLog
2018-09-08  Tom Tromey  <tom@tromey.com>

	PR python/16047:
	* python/py-prettyprint.c (pretty_print_one_value): Check for
	to_string method.

gdb/testsuite/ChangeLog
2018-09-08  Tom Tromey  <tom@tromey.com>

	PR python/16047:
	* gdb.python/py-prettyprint.py (pp_int_typedef3): New class.
	(register_pretty_printers): Register new printer.
	* gdb.python/py-prettyprint.exp (run_lang_tests): Add int_type3
	test.
	* gdb.python/py-prettyprint.c (int_type3): New typedef.
	(an_int_type3): New global.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-09-10  4:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10 16:47 [binutils-gdb] Allow a pretty-printer without a to_string method sergiodj+buildbot
2018-09-10 16:49 ` *** COMPILATION FAILED *** Failures on Debian-s390x-native-extended-gdbserver-m64, branch master *** BREAKAGE *** sergiodj+buildbot
2018-09-10 16:59 ` *** COMPILATION FAILED *** Failures on RHEL-s390x-m64, " sergiodj+buildbot
2018-09-10 17:03 ` *** COMPILATION FAILED *** Failures on Debian-s390x-native-gdbserver-m64, " sergiodj+buildbot
2018-09-10 17:10 ` *** COMPILATION FAILED *** Failures on Debian-s390x-m64, " sergiodj+buildbot
2018-09-10 19:53 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, branch master sergiodj+buildbot
2018-09-10 19:54 ` Failures on Fedora-x86_64-cc-with-index, " sergiodj+buildbot
2018-09-10 20:52 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " sergiodj+buildbot
2018-09-10 20:57 ` Failures on Fedora-x86_64-native-gdbserver-m64, " sergiodj+buildbot
2018-09-10 21:05 ` Failures on Fedora-x86_64-native-gdbserver-m32, " sergiodj+buildbot
2018-09-10 21:05 ` Failures on Fedora-x86_64-m32, " sergiodj+buildbot
2018-09-11 11:39 ` Failures on Fedora-s390x-m64, " sergiodj+buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).