Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
To: gdb-patches@cygnus.com
Subject: get_frame_saved_regs broken
Date: Mon, 28 Dec 1998 01:53:00 -0000	[thread overview]
Message-ID: <vyz4sqgy4ly.fsf@issan.cs.uni-dortmund.de> (raw)

This patch fixes an obvious bug in get_frame_saved_regs.


1998-12-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* blockframe.c (get_frame_saved_regs): Pass address of local
	saved_regs instead of saved_regs_addr to memcpy if the latter is
	NULL.

--- gdb-19981215/gdb/blockframe.c.~1~	Fri Dec 18 20:33:08 1998
+++ gdb-19981215/gdb/blockframe.c	Sun Dec 27 14:06:43 1998
@@ -539,7 +539,7 @@
     {
       struct frame_saved_regs saved_regs;
       FRAME_FIND_SAVED_REGS (frame, saved_regs);
-      memcpy (frame->saved_regs, saved_regs_addr, SIZEOF_FRAME_SAVED_REGS);
+      memcpy (frame->saved_regs, &saved_regs, SIZEOF_FRAME_SAVED_REGS);
     }
   else
     {

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org


             reply	other threads:[~1998-12-28  1:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-28  1:53 Andreas Schwab [this message]
1998-12-30 17:43 ` Stan Shebs
1999-01-03 13:11 ` Andrew Cagney

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=vyz4sqgy4ly.fsf@issan.cs.uni-dortmund.de \
    --to=schwab@issan.informatik.uni-dortmund.de \
    --cc=gdb-patches@cygnus.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