diff options
author | Pedro Alves <palves@redhat.com> | 2013-04-19 15:32:55 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-04-19 15:32:55 +0000 |
commit | 1016d2d11a157ae44dd2f29620bbfd9d459ab7c8 (patch) | |
tree | f86e5b02eeda3e2000328e064dc4eeb86be94063 /gdb/reverse.c | |
parent | 3b0b4cc40ad6020112bc02ccd539fb0d9b0c6ede (diff) | |
download | gdb-1016d2d11a157ae44dd2f29620bbfd9d459ab7c8.tar.gz |
-Wpointer-sign: bookmarks.
Bookmarks are opaque to the core code -- by design, the target is free
to use any sort of blob as bookmark identifier.
The record target chooses to use strings for bookmarks. This adds
casts following that direction, fixing -Wpointer-sign warnings.
gdb/
2013-04-19 Pedro Alves <palves@redhat.com>
* record-full.c (record_full_get_bookmark): Change local 'ret'
type to char * and add cast to gdb_byte *.
(record_full_goto_bookmark): Handle 'bookmark' argument as a
string.
* reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
Diffstat (limited to 'gdb/reverse.c')
-rw-r--r-- | gdb/reverse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/reverse.c b/gdb/reverse.c index 171c53c230d..c0d7058ca93 100644 --- a/gdb/reverse.c +++ b/gdb/reverse.c @@ -259,7 +259,7 @@ goto_bookmark_command (char *args, int from_tty) || strncmp (args, "end", strlen ("end")) == 0) { /* Special case. Give target opportunity to handle. */ - target_goto_bookmark (args, from_tty); + target_goto_bookmark ((gdb_byte *) args, from_tty); return; } @@ -268,7 +268,7 @@ goto_bookmark_command (char *args, int from_tty) /* Special case -- quoted string. Pass on to target. */ if (args[strlen (args) - 1] != args[0]) error (_("Unbalanced quotes: %s"), args); - target_goto_bookmark (args, from_tty); + target_goto_bookmark ((gdb_byte *) args, from_tty); return; } |