diff --git a/gdb/python/py-xmethods.c b/gdb/python/py-xmethods.c index 0062b2d..5ba146f 100644 --- a/gdb/python/py-xmethods.c +++ b/gdb/python/py-xmethods.c @@ -106,7 +106,7 @@ invoke_match_method (PyObject *matcher, PyObject *py_obj_type, cleanups = make_cleanup (null_cleanup, NULL); - enabled_field = PyObject_GetAttrString (matcher, enabled_field_name); + enabled_field = PyObject_GetAttrString (matcher, (char *) enabled_field_name); if (enabled_field == NULL) { do_cleanups (cleanups); @@ -127,7 +127,7 @@ invoke_match_method (PyObject *matcher, PyObject *py_obj_type, Py_RETURN_NONE; } - match_method = PyObject_GetAttrString (matcher, match_method_name); + match_method = PyObject_GetAttrString (matcher, (char *) match_method_name); if (match_method == NULL) { do_cleanups (cleanups); @@ -252,13 +252,13 @@ gdbpy_get_matching_xmethod_workers /* Gather debug method matchers registered globally. */ if (gdb_python_module != NULL - && PyObject_HasAttrString (gdb_python_module, matchers_attr_str)) + && PyObject_HasAttrString (gdb_python_module, (char *) matchers_attr_str)) { PyObject *gdb_matchers; PyObject *temp = py_xmethod_matcher_list; gdb_matchers = PyObject_GetAttrString (gdb_python_module, - matchers_attr_str); + (char *) matchers_attr_str); if (gdb_matchers != NULL) { py_xmethod_matcher_list = PySequence_Concat (temp, gdb_matchers); @@ -391,8 +391,8 @@ gdbpy_get_xmethod_arg_types (const struct extension_language_defn *extlang, cleanups = ensure_python_env (get_current_arch (), current_language); - get_arg_types_method = PyObject_GetAttrString (py_worker, - get_arg_types_method_name); + get_arg_types_method = PyObject_GetAttrString + (py_worker, (char *) get_arg_types_method_name); if (get_arg_types_method == NULL) { gdbpy_print_stack ();