* dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
authorDaniel Jacobowitz <drow@false.org>
Tue, 9 Nov 2004 19:51:44 +0000 (19:51 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 9 Nov 2004 19:51:44 +0000 (19:51 +0000)
size.

gdb/ChangeLog
gdb/dwarf2-frame.c

index 6aaaccf37992027ee01a81ce4b8a0d106fe62520..3ca6fadc4d8b3c7aff0be50bf90d91dfc4e542af 100644 (file)
@@ -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.
index 6a37e5df7df04a5cdcf85ef83432a4f7ede17eb7..03984e277ca3f717e9d44d534670dd5ccb619ce0 100644 (file)
@@ -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);