This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] fix typo in hppa-tdep.c


Fixes a copy&paste error in hppa-tdep.c; committed. -randolph

2004-05-18  Randolph Chung  <tausq@debian.org>

	* hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
	millicode functions.

Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.161
diff -u -p -r1.161 hppa-tdep.c
--- hppa-tdep.c	19 May 2004 02:38:28 -0000	1.161
+++ hppa-tdep.c	19 May 2004 02:47:15 -0000
@@ -1807,7 +1835,7 @@ hppa_frame_cache (struct frame_info *nex
      as the return register while normal code uses "rp".  */
   if (u->Millicode)
     {
-      if (trad_frame_addr_p (cache->saved_regs, HPPA_RP_REGNUM))
+      if (trad_frame_addr_p (cache->saved_regs, 31))
         cache->saved_regs[HPPA_PCOQ_HEAD_REGNUM] = cache->saved_regs[31];
       else
 	{
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]