From: Daniel Jacobowitz Date: Tue, 9 Nov 2004 19:51:44 +0000 (+0000) Subject: * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d10891d454fd5cce28491804ea033860c9e89998;p=binutils-gdb.git * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated size. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6aaaccf3799..3ca6fadc4d8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-11-09 Daniel Jacobowitz + + * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated + size. + 2004-11-09 Andrew Cagney * TODO: Delete. diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 6a37e5df7df..03984e277ca 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -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);