diff options
author | Tom Tromey <tom@tromey.com> | 2016-11-12 11:48:48 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-01-10 19:13:55 -0700 |
commit | 1eba63835ea23cbae6059c076db985a47e39ce24 (patch) | |
tree | 9fb10dbc2c7b84b8d23df9464f16f6f19ccfdcea /gdb/python/python-internal.h | |
parent | bde7b3e3a0d5e1f0b66730d692b21c98a8686f75 (diff) | |
download | gdb-1eba63835ea23cbae6059c076db985a47e39ce24.zip gdb-1eba63835ea23cbae6059c076db985a47e39ce24.tar.gz gdb-1eba63835ea23cbae6059c076db985a47e39ce24.tar.bz2 |
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.
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r-- | gdb/python/python-internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 41275bb..f231486 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -583,7 +583,8 @@ gdb::unique_xmalloc_ptr<char> gdbpy_exception_to_string (PyObject *ptype, int gdbpy_is_lazy_string (PyObject *result); void gdbpy_extract_lazy_string (PyObject *string, CORE_ADDR *addr, struct type **str_type, - long *length, char **encoding); + long *length, + gdb::unique_xmalloc_ptr<char> *encoding); int gdbpy_is_value_object (PyObject *obj); |