Change type of encoding argument to gdbpy_extract_lazy_string
authorTom Tromey <tom@tromey.com>
Sat, 12 Nov 2016 18:48:48 +0000 (11:48 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:55 +0000 (19:13 -0700)
commit1eba63835ea23cbae6059c076db985a47e39ce24
tree9fb10dbc2c7b84b8d23df9464f16f6f19ccfdcea
parentbde7b3e3a0d5e1f0b66730d692b21c98a8686f75
Change type of encoding argument to gdbpy_extract_lazy_string

This changes gdbpy_extract_lazy_string's "encoding" argument to be a
unique_xmalloc_ptr.  I chose this rather than std::string because it
can sometimes be NULL.

2017-01-10  Tom Tromey  <tom@tromey.com>

* python/py-prettyprint.c (print_string_repr, print_children):
Update.
* python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
of "encoding".
* varobj.c (varobj_value_get_print_value): Update.
* python/python-internal.h (gdbpy_extract_lazy_string): Update.
gdb/ChangeLog
gdb/python/py-lazy-string.c
gdb/python/py-prettyprint.c
gdb/python/python-internal.h
gdb/varobj.c