aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2-frame.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-11-09 19:51:44 +0000
committerDaniel Jacobowitz <drow@false.org>2004-11-09 19:51:44 +0000
commitd10891d454fd5cce28491804ea033860c9e89998 (patch)
treeb553813cf0d71ffddce903577872f37360268adf /gdb/dwarf2-frame.c
parente6dc21b6954c484be22a379b9c12c72767d3a774 (diff)
downloadgdb-d10891d454fd5cce28491804ea033860c9e89998.zip
gdb-d10891d454fd5cce28491804ea033860c9e89998.tar.gz
gdb-d10891d454fd5cce28491804ea033860c9e89998.tar.bz2
* dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
size.
Diffstat (limited to 'gdb/dwarf2-frame.c')
-rw-r--r--gdb/dwarf2-frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index 6a37e5d..03984e2 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);