diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-11-09 19:51:44 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-11-09 19:51:44 +0000 |
commit | d10891d454fd5cce28491804ea033860c9e89998 (patch) | |
tree | b553813cf0d71ffddce903577872f37360268adf /gdb/dwarf2-frame.c | |
parent | e6dc21b6954c484be22a379b9c12c72767d3a774 (diff) | |
download | gdb-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.c | 2 |
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); |