2011-03-01 Michael Snyder <msnyder@vmware.com>
* python/py-prettyprint.c (apply_val_pretty_printer): VAL may be null.
This commit is contained in:
parent
5f01dbc03c
commit
6e9130cf1b
2 changed files with 5 additions and 1 deletions
|
@ -692,7 +692,8 @@ apply_val_pretty_printer (struct type *type, const gdb_byte *valaddr,
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue