From d31d2fc374b0523049655a0038cbdf1b43827edf Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 22 Sep 2010 20:00:53 +0000 Subject: gdb/ Code cleanup. * objfiles.c (allocate_objfile) name != NULL>: Remove. (free_objfile) name != NULL>: Remove the conditional around xfree. * objfiles.h (struct objfile) : New comment it is never NULL. * python/py-auto-load.c (auto_load_new_objfile) name>: Remove. * python/py-objfile.c (objfpy_get_filename) objfile->name> Remove the conditional. * python/py-progspace.c (pspy_get_filename) name>: Likewise. --- gdb/python/py-progspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python/py-progspace.c') diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index 8724532..2c8a677 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -52,7 +52,7 @@ pspy_get_filename (PyObject *self, void *closure) { struct objfile *objfile = obj->pspace->symfile_object_file; - if (objfile && objfile->name) + if (objfile) return PyString_Decode (objfile->name, strlen (objfile->name), host_charset (), NULL); } -- cgit v1.1