diff options
Diffstat (limited to 'gdb/python/py-prettyprint.c')
-rw-r--r-- | gdb/python/py-prettyprint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c index b50e757..aa9476e 100644 --- a/gdb/python/py-prettyprint.c +++ b/gdb/python/py-prettyprint.c @@ -708,6 +708,9 @@ apply_val_pretty_printer (struct type *type, const gdb_byte *valaddr, if (!value_bytes_available (val, embedded_offset, TYPE_LENGTH (type))) return 0; + if (!gdb_python_initialized) + return 0; + cleanups = ensure_python_env (gdbarch, language); /* Instantiate the printer. */ |