From: Kevin Buettner Date: Wed, 15 Dec 2004 22:45:39 +0000 (+0000) Subject: * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28fe5f6afda0c580f01480437c50249eed059be4;p=binutils-gdb.git * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the frame cache. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fd7e2fdcb42..9c50c11e823 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-12-15 Kevin Buettner + + * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the + frame cache. + 2004-12-14 Randolph Chung * hppa-tdep.c (hppa_in_function_epilogue_p): New function. diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c index 3cd64d7be54..a93f544ec4b 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);