gdb/
Code cleanup. * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove. (free_objfile) <objfile->name != NULL>: Remove the conditional around xfree. * objfiles.h (struct objfile) <name>: New comment it is never NULL. * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>: Remove. * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name> Remove the conditional. * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
This commit is contained in:
parent
7f6130ff85
commit
d31d2fc374
6 changed files with 18 additions and 14 deletions
|
@ -188,8 +188,8 @@ struct objfile
|
|||
|
||||
struct objfile *next;
|
||||
|
||||
/* The object file's name, tilde-expanded and absolute.
|
||||
Malloc'd; free it if you free this struct. */
|
||||
/* The object file's name, tilde-expanded and absolute. Malloc'd; free it
|
||||
if you free this struct. This pointer is never NULL. */
|
||||
|
||||
char *name;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue