aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-22 16:44:45 +0000
committerTom Tromey <tromey@redhat.com>2012-08-22 16:44:45 +0000
commite1507e953ec06f50f83f0bbc2b50a7f3b11f4022 (patch)
tree3d41d055dcf029eefad47eb986ad8559430e1740 /gdb/objfiles.h
parent1c00ec6b06aa852351b7eebd64b4f1604766e818 (diff)
downloadfsf-binutils-gdb-e1507e953ec06f50f83f0bbc2b50a7f3b11f4022.zip
fsf-binutils-gdb-e1507e953ec06f50f83f0bbc2b50a7f3b11f4022.tar.gz
fsf-binutils-gdb-e1507e953ec06f50f83f0bbc2b50a7f3b11f4022.tar.bz2
* jit.c (jit_object_close_impl): Don't malloc the objfile
name. * objfiles.c (allocate_objfile): Don't malloc the objfile name. (free_objfile): Don't free the objfile name. * objfiles.h (struct objfile) <name>: Update comment. * symfile.c (reread_symbols): Fix reference counting. Don't malloc objfile name.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 24124fe..304f935 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -197,8 +197,9 @@ struct objfile
struct objfile *next;
- /* The object file's name, tilde-expanded and absolute. Malloc'd; free it
- if you free this struct. This pointer is never NULL. */
+ /* The object file's name, tilde-expanded and absolute. This
+ pointer is never NULL. This does not have to be freed; it is
+ guaranteed to have a lifetime at least as long as the objfile. */
char *name;