Switch the inferior too in switch_to_program_space_and_thread
[deliverable/binutils-gdb.git] / sim / ppc / emul_bugapi.c
index e33d0cf2995d85d3c9d624087c471ddba4d6f9fd..8481b6fb39e6cfcad9496507caf10ded4532aef7 100644 (file)
@@ -339,7 +339,7 @@ emul_bugapi_instruction_name(int call_id)
   static char buffer[40];
   int i;
 
-  for (i = 0; i < sizeof (bug_mapping) / sizeof (bug_mapping[0]); i++)
+  for (i = 0; i < ARRAY_SIZE (bug_mapping); i++)
     {
       if (bug_mapping[i].value == call_id)
        return bug_mapping[i].info;
This page took 0.023312 seconds and 4 git commands to generate.