From d10891d454fd5cce28491804ea033860c9e89998 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 9 Nov 2004 19:51:44 +0000 Subject: [PATCH] * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated size. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2-frame.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.30.2