aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-05-28 16:30:39 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-05-28 16:30:39 +0000
commit6bf0ce2beda67e4101c734c8911c2aa9a7924833 (patch)
tree03ac782bfec64821d71e82d49c2081beaeb72a4a /gdb/python
parentb662cd9e9819c4c8819e97f2fb3c199fe1ff54fc (diff)
downloadgdb-6bf0ce2beda67e4101c734c8911c2aa9a7924833.zip
gdb-6bf0ce2beda67e4101c734c8911c2aa9a7924833.tar.gz
gdb-6bf0ce2beda67e4101c734c8911c2aa9a7924833.tar.bz2
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.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python-prettyprint.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/python/python-prettyprint.c b/gdb/python/python-prettyprint.c
index 6e17f9a..117a5e4 100644
--- a/gdb/python/python-prettyprint.c
+++ b/gdb/python/python-prettyprint.c
@@ -23,10 +23,12 @@
#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;