summaryrefslogtreecommitdiff
path: root/gdb/ctf.c
diff options
context:
space:
mode:
authorqiyao <qiyao>2013-04-20 07:38:39 +0000
committerqiyao <qiyao>2013-04-20 07:38:39 +0000
commit5461f4b4302ed312ae837284661f63bcbb5f0150 (patch)
treee1d7dc532341eb088b71029085f7f44cf6f38162 /gdb/ctf.c
parentf857351bba8ed38f911fae105fb163ecbb891f38 (diff)
downloadgdb-5461f4b4302ed312ae837284661f63bcbb5f0150.tar.gz
gdb/
* 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 *'.
Diffstat (limited to 'gdb/ctf.c')
-rw-r--r--gdb/ctf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ctf.c b/gdb/ctf.c
index 240e909aa11..13df0898658 100644
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -1234,7 +1234,7 @@ ctf_fetch_registers (struct target_ops *ops,
{
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;
@@ -1280,7 +1280,7 @@ ctf_fetch_registers (struct target_ops *ops,
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;