• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisiónc714b42695bbe7ff5e22aae2f91f9071b3ecf601 (tree)
Tiempo2013-04-20 00:35:58
AutorPedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

-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.

Cambiar Resumen

Diferencia incremental

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2013-04-19 Pedro Alves <palves@redhat.com>
22
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+
38 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
49 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
510 'offset', and adjust.
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -11532,7 +11532,8 @@ print_it_exception (enum exception_catchpoint_kind ex, bpstat bs)
1153211532
1153311533 if (addr != 0)
1153411534 {
11535- read_memory (addr, exception_name, sizeof (exception_name) - 1);
11535+ read_memory (addr, (gdb_byte *) exception_name,
11536+ sizeof (exception_name) - 1);
1153611537 exception_name [sizeof (exception_name) - 1] = '\0';
1153711538 }
1153811539 else
--- 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)
433433
434434 /* Extract LEN characters from the fat string. */
435435 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);
437437
438438 /* Add the NUL character to close the string. */
439439 dest[len] = '\0';