Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* get_frame_saved_regs broken
@ 1998-12-28  1:53 Andreas Schwab
  1998-12-30 17:43 ` Stan Shebs
  1999-01-03 13:11 ` Andrew Cagney
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Schwab @ 1998-12-28  1:53 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-01-03 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-28  1:53 get_frame_saved_regs broken Andreas Schwab
1998-12-30 17:43 ` Stan Shebs
1999-01-03 13:11 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox