diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-breakpoint.c | 2 | ||||
-rw-r--r-- | gdb/python/python.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index d57c2fa..86719d1 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -674,7 +674,7 @@ bppy_init (PyObject *self, PyObject *args, PyObject *kwargs) { gdb::unique_xmalloc_ptr<char> copy_holder (xstrdup (skip_spaces (spec))); - char *copy = copy_holder.get (); + const char *copy = copy_holder.get (); switch (type) { diff --git a/gdb/python/python.c b/gdb/python/python.c index ff757fd..b04057e 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -647,7 +647,7 @@ gdbpy_solib_name (PyObject *self, PyObject *args) static PyObject * gdbpy_decode_line (PyObject *self, PyObject *args) { - char *arg = NULL; + const char *arg = NULL; gdbpy_ref<> result; gdbpy_ref<> unparsed; event_location_up location; |