aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-04-20 07:38:39 +0000
committerYao Qi <yao@codesourcery.com>2013-04-20 07:38:39 +0000
commit8b4833e358f07bd8e3597e54d37a6d0238aa3861 (patch)
treebc5d02da3db5ad9e316ff5530fba179140bc2607
parent67b8da8244abebee30b2f195f02cca8e3a1fa5e7 (diff)
downloadfsf-binutils-gdb-8b4833e358f07bd8e3597e54d37a6d0238aa3861.zip
fsf-binutils-gdb-8b4833e358f07bd8e3597e54d37a6d0238aa3861.tar.gz
fsf-binutils-gdb-8b4833e358f07bd8e3597e54d37a6d0238aa3861.tar.bz2
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 *'.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ctf.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5a2c323..e553b41 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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
diff --git a/gdb/ctf.c b/gdb/ctf.c
index 240e909..13df089 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;