mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
size.
This commit is contained in:
parent
e6dc21b695
commit
d10891d454
@ -1,3 +1,8 @@
|
||||
2004-11-09 Daniel Jacobowitz <dan@debian.org>
|
||||
|
||||
* dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
|
||||
size.
|
||||
|
||||
2004-11-09 Andrew Cagney <cagney@gnu.org>
|
||||
|
||||
* TODO: Delete.
|
||||
|
@ -162,7 +162,7 @@ dwarf2_frame_state_alloc_regs (struct dwarf2_frame_state_reg_info *rs,
|
||||
static struct dwarf2_frame_state_reg *
|
||||
dwarf2_frame_state_copy_regs (struct dwarf2_frame_state_reg_info *rs)
|
||||
{
|
||||
size_t size = rs->num_regs * sizeof (struct dwarf2_frame_state_reg_info);
|
||||
size_t size = rs->num_regs * sizeof (struct dwarf2_frame_state_reg);
|
||||
struct dwarf2_frame_state_reg *reg;
|
||||
|
||||
reg = (struct dwarf2_frame_state_reg *) xmalloc (size);
|
||||
|
Loading…
Reference in New Issue
Block a user