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]

[commit] Fix hpux warnings


Hello, this fixes two warnings and in the process, one bug. An instruction pattern was simply wrong.

committed,
Andrew
2004-02-22  Andrew Cagney  <cagney@redhat.com>

	* hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
	unsigned.
	(hppa_frame_find_saved_regs): Fix "std" instruction pattern
	
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.118
diff -u -r1.118 hppa-tdep.c
--- hppa-tdep.c	22 Feb 2004 16:51:37 -0000	1.118
+++ hppa-tdep.c	22 Feb 2004 16:54:11 -0000
@@ -702,7 +702,7 @@
 const unsigned char *
 hppa_breakpoint_from_pc (CORE_ADDR *pc, int *len)
 {
-  static const char breakpoint[] = {0x00, 0x01, 0x00, 0x04};
+  static const unsigned char breakpoint[] = {0x00, 0x01, 0x00, 0x04};
   (*len) = sizeof (breakpoint);
   return breakpoint;
 }
@@ -4149,7 +4149,7 @@
 	      && extract_14 (inst) >= 0)
 	    frame_saved_regs[reg] = get_frame_base (frame_info);
 	  /* A std has explicit post_modify forms.  */
-	  else if ((inst & 0xfc00000c0) == 0x70000008)
+	  else if ((inst & 0xfc00000c) == 0x70000008)
 	    frame_saved_regs[reg] = get_frame_base (frame_info);
 	  else
 	    {

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