diff options
author | Pedro Alves <palves@redhat.com> | 2013-04-19 15:35:58 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-04-19 15:35:58 +0000 |
commit | c714b42695bbe7ff5e22aae2f91f9071b3ecf601 (patch) | |
tree | 3eec53d4f69aae2af91ab28b8912baff0e08c11c /gdb/ada-lang.c | |
parent | 507a579c9a5e778ae737c7066df4864c5f1d2ccc (diff) | |
download | gdb-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-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 4d07d4d..fdfc0b4 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -11532,7 +11532,8 @@ print_it_exception (enum exception_catchpoint_kind ex, bpstat bs) if (addr != 0) { - read_memory (addr, exception_name, sizeof (exception_name) - 1); + read_memory (addr, (gdb_byte *) exception_name, + sizeof (exception_name) - 1); exception_name [sizeof (exception_name) - 1] = '\0'; } else |