This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

Re: [patch/hppa] Several cleanups for hppa-tdep.c


   Date: Tue, 9 Nov 2004 16:00:26 -0800
   From: Randolph Chung <randolph@tausq.org>

   will commit as obvious tomorrow, unless i hear otherwise.

   @@ -1653,7 +1670,8 @@ hppa_frame_cache (struct frame_info *nex
	  {
	   int reg;
	   char buf4[4];
   -	long status = deprecated_read_memory_nobpt (pc, buf4, sizeof buf4);
   +	long status = safe_frame_unwind_memory (next_frame, pc, buf4, 
   +						sizeof buf4);
	   long inst = extract_unsigned_integer (buf4, sizeof buf4);

This bit is probably not right.  The return value from
safe_frame_unwind_memory is the opposite of
deprecated_read_memory_nobpt.

Hmm, it doesn't seem to matter; the return value isn't used.  Some
more cleanups to do ;-).  You probably ought to check the return value
though.

Mark


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