diff options
author | Tom Tromey <tromey@redhat.com> | 2012-08-22 16:44:45 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-08-22 16:44:45 +0000 |
commit | e1507e953ec06f50f83f0bbc2b50a7f3b11f4022 (patch) | |
tree | 3d41d055dcf029eefad47eb986ad8559430e1740 /gdb/jit.c | |
parent | 1c00ec6b06aa852351b7eebd64b4f1604766e818 (diff) | |
download | gdb-e1507e953ec06f50f83f0bbc2b50a7f3b11f4022.zip gdb-e1507e953ec06f50f83f0bbc2b50a7f3b11f4022.tar.gz 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/jit.c')
-rw-r--r-- | gdb/jit.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -761,8 +761,7 @@ jit_object_close_impl (struct gdb_symbol_callbacks *cb, terminate_minimal_symbol_table (objfile); - xfree (objfile->name); - objfile->name = xstrdup ("<< JIT compiled code >>"); + objfile->name = "<< JIT compiled code >>"; j = NULL; for (i = obj->symtabs; i; i = j) |