From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18051 invoked by alias); 12 Nov 2008 15:10:32 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 17880 invoked by uid 306); 12 Nov 2008 15:10:31 -0000 Date: Wed, 12 Nov 2008 15:10:00 -0000 Message-ID: <20081112151031.17845.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-python: * valprint.c (value_print): Call apply_val_pretty_printer. X-Git-Refname: refs/heads/archer-tromey-python X-Git-Reftype: branch X-Git-Oldrev: 4d3313b792a9e87b61a11f42b08e7ec29414c15d X-Git-Newrev: c72d8bd86890c414f264984a8e63f8d16a08df94 X-SW-Source: 2008-q4/txt/msg00095.txt.bz2 List-Id: The branch, archer-tromey-python has been updated via c72d8bd86890c414f264984a8e63f8d16a08df94 (commit) from 4d3313b792a9e87b61a11f42b08e7ec29414c15d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit c72d8bd86890c414f264984a8e63f8d16a08df94 Author: Tom Tromey Date: Wed Nov 12 08:07:53 2008 -0700 * valprint.c (value_print): Call apply_val_pretty_printer. ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 4 ++++ gdb/valprint.c | 12 ++++++++++++ 2 files changed, 16 insertions(+), 0 deletions(-) First 500 lines of diff: diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d1b0bbd..6541640 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-11-12 Tom Tromey + + * valprint.c (value_print): Call apply_val_pretty_printer. + 2008-11-11 Tom Tromey * varobj.c (varobj_get_display_hint): Use gdbpy_get_display_hint. diff --git a/gdb/valprint.c b/gdb/valprint.c index c580f39..37e5efc 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -326,6 +326,18 @@ value_print (struct value *val, struct ui_file *stream, int format, return 0; raw_printing = raw; + if (!raw) + { + int r = apply_val_pretty_printer (value_type (val), + value_contents_all (val), + value_embedded_offset (val), + value_address (val), + stream, format, 1, 0, pretty, + current_language); + if (r) + return r; + } + return LA_VALUE_PRINT (val, stream, format, pretty); } hooks/post-receive -- Repository for Project Archer.