Change TUI window commands to be case-sensitive
[deliverable/binutils-gdb.git] / gdb / spu-tdep.c
index 69ffb69fcb98fe05e4a1c0da3ddbacb327a667a9..5360efb12f7da299f9dcf4f3f71b7992f8e0feaf 100644 (file)
@@ -52,9 +52,9 @@ static struct cmd_list_element *setspucmdlist = NULL;
 static struct cmd_list_element *showspucmdlist = NULL;
 
 /* Whether to stop for new SPE contexts.  */
-static int spu_stop_on_load_p = 0;
+static bool spu_stop_on_load_p = false;
 /* Whether to automatically flush the SW-managed cache.  */
-static int spu_auto_flush_cache_p = 1;
+static bool spu_auto_flush_cache_p = true;
 
 
 /* The tdep structure.  */
@@ -1833,7 +1833,7 @@ spu_get_overlay_table (struct objfile *objfile)
        continue;
 
       ALL_OBJFILE_OSECTIONS (objfile, osect)
-       if (vma == bfd_section_vma (objfile->obfd, osect->the_bfd_section)
+       if (vma == bfd_section_vma (osect->the_bfd_section)
            && pos == osect->the_bfd_section->filepos)
          {
            int ndx = osect - objfile->sections;
@@ -1921,9 +1921,9 @@ spu_overlay_new_objfile (struct objfile *objfile)
       int ndx = osect - objfile->sections;
 
       if (ovly_table[ndx].mapped_ptr == 0)
-       bfd_section_lma (obfd, bsect) = bfd_section_vma (obfd, bsect);
+       bfd_set_section_lma (bsect, bfd_section_vma (bsect));
       else
-       bfd_section_lma (obfd, bsect) = SPU_OVERLAY_LMA + bsect->filepos;
+       bfd_set_section_lma (bsect, SPU_OVERLAY_LMA + bsect->filepos);
     }
 }
 
@@ -2168,12 +2168,12 @@ info_spu_signal_command (const char *args, int from_tty)
 
   if (current_uiout->is_mi_like_p ())
     {
-      current_uiout->field_int ("signal1_pending", signal1_pending);
+      current_uiout->field_signed ("signal1_pending", signal1_pending);
       current_uiout->field_fmt ("signal1", "0x%s", phex_nz (signal1, 4));
-      current_uiout->field_int ("signal1_type", signal1_type);
-      current_uiout->field_int ("signal2_pending", signal2_pending);
+      current_uiout->field_signed ("signal1_type", signal1_type);
+      current_uiout->field_signed ("signal2_pending", signal2_pending);
       current_uiout->field_fmt ("signal2", "0x%s", phex_nz (signal2, 4));
-      current_uiout->field_int ("signal2_type", signal2_type);
+      current_uiout->field_signed ("signal2_type", signal2_type);
     }
   else
     {
@@ -2415,11 +2415,11 @@ info_spu_dma_cmdlist (gdb_byte *buf, int nr, enum bfd_endian byte_order)
        if (spu_mfc_opcode[mfc_cmd_opcode])
          current_uiout->field_string ("opcode", spu_mfc_opcode[mfc_cmd_opcode]);
        else
-         current_uiout->field_int ("opcode", mfc_cmd_opcode);
+         current_uiout->field_signed ("opcode", mfc_cmd_opcode);
 
-       current_uiout->field_int ("tag", mfc_cmd_tag);
-       current_uiout->field_int ("tid", tclass_id);
-       current_uiout->field_int ("rid", rclass_id);
+       current_uiout->field_signed ("tag", mfc_cmd_tag);
+       current_uiout->field_signed ("tid", tclass_id);
+       current_uiout->field_signed ("rid", rclass_id);
 
        if (ea_valid_p)
          current_uiout->field_fmt ("ea", "0x%s", phex (mfc_ea, 8));
This page took 0.029121 seconds and 4 git commands to generate.