python/py-utils.c (host_string_to_python_string): New function.
authorDoug Evans <dje@google.com>
Wed, 30 Mar 2016 06:48:35 +0000 (23:48 -0700)
committerDoug Evans <dje@google.com>
Wed, 30 Mar 2016 06:48:35 +0000 (23:48 -0700)
commit4ae6cc19626d010005fbfbfba72952d26cc7c728
tree79b99d5476876b4bd92ac2d0f0b6c67589ca67ec
parent4ec9d7d56427e9fa49fd705599bb2ff0c3c5f3c1
python/py-utils.c (host_string_to_python_string): New function.

gdb/ChangeLog:

* python/py-utils.c (host_string_to_python_string): New function.
* python/python-internal.h (host_string_to_python_string): Declare it.
* python/py-*.c (*): Update all calls to
PyString_Decode (str, strlen (str), host_charset (), NULL);
to use host_string_to_python_string instead.
gdb/ChangeLog
gdb/python/py-breakpoint.c
gdb/python/py-objfile.c
gdb/python/py-progspace.c
gdb/python/py-symtab.c
gdb/python/py-utils.c
gdb/python/python-internal.h
gdb/python/python.c