This is the mail archive of the gdb-patches@sourceware.cygnus.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]

[SIM] Fix sim/mips printf botch


FYI,

I've committed the attatched.

	Andrew
Mon Apr 10 00:07:09 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* interp.c (decode_coproc): Output long using %lx and not %s.

Index: interp.c
===================================================================
RCS file: /cvs/src/src/sim/mips/interp.c,v
retrieving revision 1.3
diff -p -r1.3 interp.c
*** interp.c	2000/03/21 20:45:43	1.3
--- interp.c	2000/04/09 14:13:14
*************** decode_coproc (SIM_DESC sd,
*** 3231,3238 ****
  		/* 30 = ErrorEPC           R4000   VR4100  VR4300 */
  		if (STATE_VERBOSE_P(SD))
  		  sim_io_eprintf (SD, 
! 		    "Warning: PC 0x%s:interp.c decode_coproc DEADC0DE\n",
! 		      (unsigned)cia);
  		GPR[rt] = 0xDEADC0DE; /* CPR[0,rd] */
  		/* CPR[0,rd] = GPR[rt]; */
  	      default:
--- 3231,3238 ----
  		/* 30 = ErrorEPC           R4000   VR4100  VR4300 */
  		if (STATE_VERBOSE_P(SD))
  		  sim_io_eprintf (SD, 
! 				  "Warning: PC 0x%lx:interp.c decode_coproc DEADC0DE\n",
! 				  (unsigned long)cia);
  		GPR[rt] = 0xDEADC0DE; /* CPR[0,rd] */
  		/* CPR[0,rd] = GPR[rt]; */
  	      default:

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