* python/py-prettyprint.c (apply_val_pretty_printer): VAL may
be null.
2011-03-01 Michael Snyder <msnyder@vmware.com>
+ * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
+ be null.
+
* linespec.c (decode_line_1): Check for null before dereference.
* reverse.c (record_restore): Move null-check to before pointer
enum string_repr_result print_result;
/* No pretty-printer support for unavailable values. */
- if (!value_bytes_available (val, embedded_offset, TYPE_LENGTH (type)))
+ if (val && !value_bytes_available (val, embedded_offset,
+ TYPE_LENGTH (type)))
return 0;
cleanups = ensure_python_env (gdbarch, language);