diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-auto-load.c | 6 | ||||
-rw-r--r-- | gdb/python/py-objfile.c | 3 | ||||
-rw-r--r-- | gdb/python/py-progspace.c | 3 |
3 files changed, 7 insertions, 5 deletions
diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c index fa07432..2802acf 100644 --- a/gdb/python/py-auto-load.c +++ b/gdb/python/py-auto-load.c @@ -74,7 +74,7 @@ gdbpy_load_auto_script_for_objfile (struct objfile *objfile, FILE *file, is_safe = file_is_auto_load_safe (filename, _("auto-load: Loading Python script \"%s\" " "by extension for objfile \"%s\".\n"), - filename, objfile->name); + filename, objfile_name (objfile)); /* Add this script to the hash table too so "info auto-load python-scripts" can print it. */ @@ -157,7 +157,7 @@ source_section_scripts (struct objfile *objfile, const char *source_name, "\"%s\" from section \"%s\" of " "objfile \"%s\".\n"), full_path, GDBPY_AUTO_SECTION_NAME, - objfile->name)) + objfile_name (objfile))) opened = 0; } else @@ -169,7 +169,7 @@ source_section_scripts (struct objfile *objfile, const char *source_name, warning (_("Missing auto-load scripts referenced in section %s\n\ of file %s\n\ Use `info auto-load python [REGEXP]' to list them."), - GDBPY_AUTO_SECTION_NAME, objfile->name); + GDBPY_AUTO_SECTION_NAME, objfile_name (objfile)); } /* If one script isn't found it's not uncommon for more to not be diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index a954c9d..9bbd4c2 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -53,7 +53,8 @@ objfpy_get_filename (PyObject *self, void *closure) objfile_object *obj = (objfile_object *) self; if (obj->objfile) - return PyString_Decode (obj->objfile->name, strlen (obj->objfile->name), + return PyString_Decode (objfile_name (obj->objfile), + strlen (objfile_name (obj->objfile)), host_charset (), NULL); Py_RETURN_NONE; } diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index 98eeecc..910c6a3 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -60,7 +60,8 @@ pspy_get_filename (PyObject *self, void *closure) struct objfile *objfile = obj->pspace->symfile_object_file; if (objfile) - return PyString_Decode (objfile->name, strlen (objfile->name), + return PyString_Decode (objfile_name (objfile), + strlen (objfile_name (objfile)), host_charset (), NULL); } Py_RETURN_NONE; |