aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-05-17 20:04:46 +0000
committerMichael Snyder <msnyder@vmware.com>2001-05-17 20:04:46 +0000
commit736d0890a9cee610492c37b707eca3f41301a16e (patch)
tree447a9e7d57e602e4e88b4371ff97bfca4f57e151 /gdb/blockframe.c
parentf3876d8bc6b619b3fc066d2c80a78502cb074cf3 (diff)
downloadgdb-736d0890a9cee610492c37b707eca3f41301a16e.zip
gdb-736d0890a9cee610492c37b707eca3f41301a16e.tar.gz
gdb-736d0890a9cee610492c37b707eca3f41301a16e.tar.bz2
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.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index d35c24a..2f520d9 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -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);