aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-tasks.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-04-19 15:35:58 +0000
committerPedro Alves <palves@redhat.com>2013-04-19 15:35:58 +0000
commitc714b42695bbe7ff5e22aae2f91f9071b3ecf601 (patch)
tree3eec53d4f69aae2af91ab28b8912baff0e08c11c /gdb/ada-tasks.c
parent507a579c9a5e778ae737c7066df4864c5f1d2ccc (diff)
downloadgdb-c714b42695bbe7ff5e22aae2f91f9071b3ecf601.zip
gdb-c714b42695bbe7ff5e22aae2f91f9071b3ecf601.tar.gz
gdb-c714b42695bbe7ff5e22aae2f91f9071b3ecf601.tar.bz2
-Wpointer-sign: ada-lang.c, ada-tasks.c.
We're reading strings using the target memory access routines, which work with raw bytes, so we need a couple casts. gdb/ 2013-04-19 Pedro Alves <palves@redhat.com> * ada-lang.c (print_it_exception): Add cast to gdb_byte *. * ada-tasks.c (read_fat_string_value): Likewise.
Diffstat (limited to 'gdb/ada-tasks.c')
-rw-r--r--gdb/ada-tasks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index b0835f6..c5c7491 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -433,7 +433,7 @@ read_fat_string_value (char *dest, struct value *val, int max_len)
/* Extract LEN characters from the fat string. */
array_val = value_ind (value_field (val, array_fieldno));
- read_memory (value_address (array_val), dest, len);
+ read_memory (value_address (array_val), (gdb_byte *) dest, len);
/* Add the NUL character to close the string. */
dest[len] = '\0';