Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sources.redhat.com
Cc: Corinna Vinschen <vinschen@redhat.com>
Subject: [RFA] xstormy16-tdep.c: Initialize temporary frame cache in xstormy16_skip_prologue()
Date: Tue, 14 Dec 2004 22:47:00 -0000	[thread overview]
Message-ID: <20041214130026.7536057c@ironwood.lan> (raw)

[Corinna requested that I resend this patch...]

The patch below clears the frame cache for the call to
xstormy16_analyze_prologue().  If this initialization is not
performed, then the ``if (!cache.uses_fp)'' test following the call in
question will reference an uninitialized value.

Okay?

	* xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
	frame cache.

Index: xstormy16-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/xstormy16-tdep.c,v
retrieving revision 1.84
diff -u -p -r1.84 xstormy16-tdep.c
--- xstormy16-tdep.c	31 Oct 2004 20:36:34 -0000	1.84
+++ xstormy16-tdep.c	29 Nov 2004 21:25:19 -0000
@@ -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);


             reply	other threads:[~2004-12-14 20:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-14 22:47 Kevin Buettner [this message]
2004-12-15 10:09 ` Corinna Vinschen
2004-12-16 15:30   ` Kevin Buettner
  -- strict thread matches above, loose matches on Subject: below --
2004-11-29 21:33 Kevin Buettner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041214130026.7536057c@ironwood.lan \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=vinschen@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox