+2013-04-20  Yao Qi  <yao@codesourcery.com>
+
+       * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
+       'char *' to 'gdb_byte *'.  Cast the return value of
+       'bt_ctf_get_char_array' to 'gdb_byte *'.
+
 2013-04-19  Pedro Alves  <palves@redhat.com>
 
        * configure.ac (build_warnings): Replace -Wno-pointer-sign with
 
 {
   struct gdbarch *gdbarch = get_regcache_arch (regcache);
   int offset, regn, regsize, pc_regno;
-  char *regs = NULL;
+  gdb_byte *regs = NULL;
   struct bt_ctf_event *event = NULL;
   struct bt_iter_pos *pos;
 
       const struct bt_definition *array
        = bt_ctf_get_field (event, scope, "contents");
 
-      regs = bt_ctf_get_char_array (array);
+      regs = (gdb_byte *) bt_ctf_get_char_array (array);
       /* Assume the block is laid out in GDB register number order,
         each register with the size that it has in GDB.  */
       offset = 0;