aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-10 18:26:28 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-10 18:26:28 +0000
commit5652b4915ceb5be161b5735d68ff7909a33a7db3 (patch)
treed65fcde6faab5d53d3a1ec57c26bbc1d60375772 /gas
parentecec24e64a26014ab55b1796c4027026b0b5659c (diff)
downloadgdb-5652b4915ceb5be161b5735d68ff7909a33a7db3.zip
gdb-5652b4915ceb5be161b5735d68ff7909a33a7db3.tar.gz
gdb-5652b4915ceb5be161b5735d68ff7909a33a7db3.tar.bz2
2011-03-10 Michael Snyder <msnyder@vmware.com>
Revert the following change: * dwarf2dbg.c (out_file_list): Free malloced 'dir'. (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog10
-rw-r--r--gas/dwarf2dbg.c3
2 files changed, 8 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 970cbd9..437768e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-10 Michael Snyder <msnyder@vmware.com>
+
+ Revert the following change:
+ * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
+ (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
+
2011-03-10 Alan Modra <amodra@gmail.com>
* gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
@@ -8,8 +14,8 @@
* dwarf2dbg.c (out_file_list): Free malloced 'dir'.
(out_debug_info): Free malloced 'dirname' and 'comp_dir'.
- (emit_fixed_inc_line_addr): Assign instead of conditional
- in assert.
+ (emit_fixed_inc_line_addr): Assign instead of conditional in
+ assert.
2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 92fc570..c551a7f 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -1328,7 +1328,6 @@ out_file_list (void)
size = strlen (dir) + 1;
cp = frag_more (size);
memcpy (cp, dir, size);
- xfree ((char *) dir);
}
/* Terminate it. */
out_byte ('\0');
@@ -1685,7 +1684,6 @@ out_debug_info (segT info_seg, segT abbrev_seg, segT line_seg, segT ranges_seg)
memcpy (p, dirname, len);
INSERT_DIR_SEPARATOR (p, len);
#endif
- xfree ((char *) dirname);
}
len = strlen (files[1].filename) + 1;
p = frag_more (len);
@@ -1696,7 +1694,6 @@ out_debug_info (segT info_seg, segT abbrev_seg, segT line_seg, segT ranges_seg)
len = strlen (comp_dir) + 1;
p = frag_more (len);
memcpy (p, comp_dir, len);
- xfree ((char *) comp_dir);
/* DW_AT_producer */
sprintf (producer, "GNU AS %s", VERSION);