aboutsummaryrefslogtreecommitdiff
path: root/gdb/xstormy16-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2004-12-15 22:45:39 +0000
committerKevin Buettner <kevinb@redhat.com>2004-12-15 22:45:39 +0000
commit28fe5f6afda0c580f01480437c50249eed059be4 (patch)
tree3bfbc619a1a94898ea5b3b9ea9386b677d11464c /gdb/xstormy16-tdep.c
parentf10b16d41ffcdab3f103f57035c3cf958f1d4022 (diff)
downloadgdb-28fe5f6afda0c580f01480437c50249eed059be4.zip
gdb-28fe5f6afda0c580f01480437c50249eed059be4.tar.gz
gdb-28fe5f6afda0c580f01480437c50249eed059be4.tar.bz2
* xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
frame cache.
Diffstat (limited to 'gdb/xstormy16-tdep.c')
-rw-r--r--gdb/xstormy16-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c
index 3cd64d7..a93f544 100644
--- a/gdb/xstormy16-tdep.c
+++ b/gdb/xstormy16-tdep.c
@@ -414,6 +414,8 @@ xstormy16_skip_prologue (CORE_ADDR pc)
struct symbol *sym;
struct xstormy16_frame_cache cache;
+ memset (&cache, 0, sizeof cache);
+
/* Don't trust line number debug info in frameless functions. */
CORE_ADDR plg_end = xstormy16_analyze_prologue (func_addr, func_end,
&cache, NULL);