int ncols = (mips_regsize (gdbarch) == 8 ? 4 : 8);
int ncols = (mips_abi_regsize (gdbarch) == 8 ? 4 : 8);
print_gp_register_row (struct ui_file *file, struct frame_info *frame,		       int start_regnum){  struct gdbarch *gdbarch = get_frame_arch (frame);  /* do values for GP (int) regs */  char raw_buffer[MAX_REGISTER_SIZE];  int ncols = (mips_regsize (gdbarch) == 8 ? 4 : 8);	/* display cols per row */  int col, byte;  int regnum;  /* For GP registers, we print a separate row of names above the vals */  fprintf_filtered (file, "     ");  for (col = 0, regnum = start_regnum;       col < ncols && regnum < NUM_REGS + NUM_PSEUDO_REGS; regnum++)    {      if (*REGISTER_NAME (regnum) == '\0')	continue;		/* unused register */      if (TYPE_CODE (gdbarch_register_type (gdbarch, regnum)) ==	  TYPE_CODE_FLT)	break;			/* end the row: reached FP register */      fprintf_filtered (file,			mips_regsize (current_gdbarch) == 8 ? "%17s" : "%9s",			REGISTER_NAME (regnum));      col++;    }  /* print the R0 to R31 names */  if ((start_regnum % NUM_REGS) < MIPS_NUMREGS)    fprintf_filtered (file, "\n R%-4d", start_regnum % NUM_REGS);  else    fprintf_filtered (file, "\n      ");  /* now print the values in hex, 4 or 8 to the row */  for (col = 0, regnum = start_regnum;       col < ncols && regnum < NUM_REGS + NUM_PSEUDO_REGS; regnum++)    {      if (*REGISTER_NAME (regnum) == '\0')	continue;		/* unused register */      if (TYPE_CODE (gdbarch_register_type (gdbarch, regnum)) ==	  TYPE_CODE_FLT)	break;			/* end row: reached FP register */      /* OK: get the data in raw format.  */      if (!frame_register_read (frame, regnum, raw_buffer))	error ("can't read register %d (%s)", regnum, REGISTER_NAME (regnum));      /* pad small registers */      for (byte = 0;	   byte < (mips_regsize (current_gdbarch)		   - register_size (current_gdbarch, regnum)); byte++)	printf_filtered ("  ");      /* Now print the register value in hex, endian order. */      if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)	for (byte =	     register_size (current_gdbarch,			    regnum) - register_size (current_gdbarch, regnum);	     byte < register_size (current_gdbarch, regnum); byte++)	  fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[byte]);      else	for (byte = register_size (current_gdbarch, regnum) - 1;	     byte >= 0; byte--)	  fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[byte]);      fprintf_filtered (file, " ");      col++;    }  if (col > 0)			/* ie. if we actually printed anything... */    fprintf_filtered (file, "\n");  return regnum;}