GNU Binutils with patches for OS216
Revisión | c714b42695bbe7ff5e22aae2f91f9071b3ecf601 (tree) |
---|---|
Tiempo | 2013-04-20 00:35:58 |
Autor | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
-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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2013-04-19 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * ada-lang.c (print_it_exception): Add cast to gdb_byte *. | |
4 | + * ada-tasks.c (read_fat_string_value): Likewise. | |
5 | + | |
6 | +2013-04-19 Pedro Alves <palves@redhat.com> | |
7 | + | |
3 | 8 | * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local |
4 | 9 | unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed |
5 | 10 | 'offset', and adjust. |
@@ -11532,7 +11532,8 @@ print_it_exception (enum exception_catchpoint_kind ex, bpstat bs) | ||
11532 | 11532 | |
11533 | 11533 | if (addr != 0) |
11534 | 11534 | { |
11535 | - read_memory (addr, exception_name, sizeof (exception_name) - 1); | |
11535 | + read_memory (addr, (gdb_byte *) exception_name, | |
11536 | + sizeof (exception_name) - 1); | |
11536 | 11537 | exception_name [sizeof (exception_name) - 1] = '\0'; |
11537 | 11538 | } |
11538 | 11539 | else |
@@ -433,7 +433,7 @@ read_fat_string_value (char *dest, struct value *val, int max_len) | ||
433 | 433 | |
434 | 434 | /* Extract LEN characters from the fat string. */ |
435 | 435 | array_val = value_ind (value_field (val, array_fieldno)); |
436 | - read_memory (value_address (array_val), dest, len); | |
436 | + read_memory (value_address (array_val), (gdb_byte *) dest, len); | |
437 | 437 | |
438 | 438 | /* Add the NUL character to close the string. */ |
439 | 439 | dest[len] = '\0'; |