diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-22 20:00:53 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-22 20:00:53 +0000 |
commit | d31d2fc374b0523049655a0038cbdf1b43827edf (patch) | |
tree | 79ce4936223decea6d217e46548131755d639b3d /gdb/objfiles.h | |
parent | 7f6130ff859e3676d0d27a3db5a42c0233dd93ec (diff) | |
download | gdb-d31d2fc374b0523049655a0038cbdf1b43827edf.zip gdb-d31d2fc374b0523049655a0038cbdf1b43827edf.tar.gz gdb-d31d2fc374b0523049655a0038cbdf1b43827edf.tar.bz2 |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index ec4870b..b3e2e26 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; |