2001-05-17 Michael Snyder <msnyder@redhat.com>

* blockframe.c (create_new_frame): Zero all the fields via memset,
	rather than zeroing them one by one.
This commit is contained in:
Michael Snyder 2001-05-17 20:04:46 +00:00
parent f3876d8bc6
commit 736d0890a9
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2001-05-17 Michael Snyder <msnyder@redhat.com>
* blockframe.c (create_new_frame): Zero all the fields via memset,
rather than zeroing them one by one.
2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
* top.c (user_args): Remove unused declaration.

View file

@ -219,10 +219,9 @@ create_new_frame (CORE_ADDR addr, CORE_ADDR pc)
obstack_alloc (&frame_cache_obstack,
sizeof (struct frame_info));
/* Arbitrary frame */
fi->saved_regs = NULL;
fi->next = NULL;
fi->prev = NULL;
/* Zero all fields by default. */
memset (fi, 0, sizeof (struct frame_info));
fi->frame = addr;
fi->pc = pc;
find_pc_partial_function (pc, &name, (CORE_ADDR *) NULL, (CORE_ADDR *) NULL);