mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
2011-03-09 Michael Snyder <msnyder@vmware.com>
* 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.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2011-03-09 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
|
2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/obj-elf.c (elf_frob_symbol): Mention symbol name in
|
* config/obj-elf.c (elf_frob_symbol): Mention symbol name in
|
||||||
|
@ -1080,7 +1080,7 @@ emit_fixed_inc_line_addr (int line_delta, addressT addr_delta, fragS *frag,
|
|||||||
symbolS *to_sym;
|
symbolS *to_sym;
|
||||||
expressionS exp;
|
expressionS exp;
|
||||||
|
|
||||||
gas_assert (pexp->X_op = O_subtract);
|
gas_assert (pexp->X_op == O_subtract);
|
||||||
to_sym = pexp->X_add_symbol;
|
to_sym = pexp->X_add_symbol;
|
||||||
|
|
||||||
*p++ = DW_LNS_extended_op;
|
*p++ = DW_LNS_extended_op;
|
||||||
@ -1328,6 +1328,7 @@ out_file_list (void)
|
|||||||
size = strlen (dir) + 1;
|
size = strlen (dir) + 1;
|
||||||
cp = frag_more (size);
|
cp = frag_more (size);
|
||||||
memcpy (cp, dir, size);
|
memcpy (cp, dir, size);
|
||||||
|
xfree ((char *) dir);
|
||||||
}
|
}
|
||||||
/* Terminate it. */
|
/* Terminate it. */
|
||||||
out_byte ('\0');
|
out_byte ('\0');
|
||||||
@ -1684,6 +1685,7 @@ out_debug_info (segT info_seg, segT abbrev_seg, segT line_seg, segT ranges_seg)
|
|||||||
memcpy (p, dirname, len);
|
memcpy (p, dirname, len);
|
||||||
INSERT_DIR_SEPARATOR (p, len);
|
INSERT_DIR_SEPARATOR (p, len);
|
||||||
#endif
|
#endif
|
||||||
|
xfree ((char *) dirname);
|
||||||
}
|
}
|
||||||
len = strlen (files[1].filename) + 1;
|
len = strlen (files[1].filename) + 1;
|
||||||
p = frag_more (len);
|
p = frag_more (len);
|
||||||
@ -1694,6 +1696,7 @@ out_debug_info (segT info_seg, segT abbrev_seg, segT line_seg, segT ranges_seg)
|
|||||||
len = strlen (comp_dir) + 1;
|
len = strlen (comp_dir) + 1;
|
||||||
p = frag_more (len);
|
p = frag_more (len);
|
||||||
memcpy (p, comp_dir, len);
|
memcpy (p, comp_dir, len);
|
||||||
|
xfree ((char *) comp_dir);
|
||||||
|
|
||||||
/* DW_AT_producer */
|
/* DW_AT_producer */
|
||||||
sprintf (producer, "GNU AS %s", VERSION);
|
sprintf (producer, "GNU AS %s", VERSION);
|
||||||
|
Reference in New Issue
Block a user