2009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 28 May 2009 16:30:39 +0000 (16:30 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 28 May 2009 16:30:39 +0000 (16:30 +0000)
    Paul Pluzhnikov  <ppluzhnikov@google.com>

* configure.ac (!have_libpython): Add python-prettyprint source
and object files.
* configure: Regenerate.
* python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
python headers.

gdb/ChangeLog
gdb/configure
gdb/configure.ac
gdb/python/python-prettyprint.c

index fec8eb2b3fbca65da7e7d00336c458ee2b7d89dd..a5aba7e993e620d703c2b812b76755efc7bae6f8 100644 (file)
@@ -1,3 +1,12 @@
+2009-05-28  Pierre Muller  <muller@ics.u-strasbg.fr>
+           Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * configure.ac (!have_libpython): Add python-prettyprint source
+       and object files.
+       * configure: Regenerate.
+       * python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
+       python headers.
+       
 2009-05-27  Vladimir Prus  <vladimir@codesourcery.com>
            Tom Tromey  <tromey@redhat.com>
            Thiago Jung Bauermann  <bauerman@br.ibm.com>
index 449e87624818bbfd785bc06a58e477346d380150..13b30f850d4f10da2005447ec63865015f2fea8d 100755 (executable)
@@ -11907,8 +11907,8 @@ echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
 else
   # Even if Python support is not compiled in, we need to have these files
   # included in order to recognize the GDB command "python".
-  CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
-  CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
+  CONFIG_OBS="$CONFIG_OBS python.o python-value.o python-prettyprint.o"
+  CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c python/python-prettyprint.c"
 fi
 
 
index af396cc137ea6d45b57acaf57614494cf7c7b7d4..1d91647e34ac25a9e749a463ec246dc96edcfd13 100644 (file)
@@ -685,8 +685,8 @@ if test "${have_libpython}" = yes; then
 else
   # Even if Python support is not compiled in, we need to have these files
   # included in order to recognize the GDB command "python".
-  CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
-  CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
+  CONFIG_OBS="$CONFIG_OBS python.o python-value.o python-prettyprint.o"
+  CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c python/python-prettyprint.c"
 fi
 AC_SUBST(PYTHON_CFLAGS)
 
index 6e17f9ad7015dab15d1b7534ab7a40d7376b8ee3..117a5e4ca1ffb65e29e9b2df8a5ab8aa7e8738da 100644 (file)
 #include "symtab.h"
 #include "language.h"
 #include "valprint.h"
+
 #include "python.h"
-#include "python-internal.h"
 
 #ifdef HAVE_PYTHON
+#include "python-internal.h"
+
 
 /* Helper function for find_pretty_printer which iterates over a list,
    calls each function and inspects output.  This will return a
@@ -587,9 +589,8 @@ gdbpy_default_visualizer (PyObject *self, PyObject *args)
 int
 apply_val_pretty_printer (struct type *type, const gdb_byte *valaddr,
                          int embedded_offset, CORE_ADDR address,
-                         struct ui_file *stream, int format,
-                         int deref_ref, int recurse,
-                         enum val_prettyprint pretty,
+                         struct ui_file *stream, int recurse,
+                         const struct value_print_options *options,
                          const struct language_defn *language)
 {
   return 0;