summaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-09-22 20:00:52 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-09-22 20:00:52 +0000
commitc408df2d80e5def5fc57fff7bc2dcf9e79f6d15a (patch)
treeaee1a8dbcd96cd30319452b07d7a97367c600ccf /gdb/objfiles.h
parent3c608a850b8c35416d1dfef6875af62adf62f076 (diff)
downloadgdb-c408df2d80e5def5fc57fff7bc2dcf9e79f6d15a.tar.gz
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.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index ec4870b27a7..b3e2e26faac 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -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;