public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-python:  * valprint.c (value_print): Call apply_val_pretty_printer.
@ 2008-11-12 15:10 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2008-11-12 15:10 UTC (permalink / raw)
  To: archer-commits

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 <tromey@redhat.com>
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  <tromey@redhat.com>
+
+	* valprint.c (value_print): Call apply_val_pretty_printer.
+
 2008-11-11  Tom Tromey  <tromey@redhat.com>
 
 	* 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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-12 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-12 15:10 [SCM] archer-tromey-python: * valprint.c (value_print): Call apply_val_pretty_printer tromey

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).