diff options
author | Tom Tromey <tromey@redhat.com> | 2013-04-15 08:59:03 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-26 09:14:16 -0600 |
commit | c2bcbb1d04bb46a130f2c84de05cbbdccc0645fc (patch) | |
tree | 57a628fb31746a0ac6f918a08f6d9c67f5a81ca6 /gdb/target.h | |
parent | 9cbe5fff2b47da85dbc628bdc8c6a85d5344749a (diff) | |
download | gdb-c2bcbb1d04bb46a130f2c84de05cbbdccc0645fc.zip gdb-c2bcbb1d04bb46a130f2c84de05cbbdccc0645fc.tar.gz gdb-c2bcbb1d04bb46a130f2c84de05cbbdccc0645fc.tar.bz2 |
constify get_bookmark and goto_bookmark
This makes arguments to to_get_bookmark and to_goto_bookmark const and
fixes the fallout. Tested by rebuilding. The only thing of note is
the new split between cmd_record_goto and record_goto -- basically
separating the CLI function from a new internal API, to allow const
propagation.
2014-06-26 Tom Tromey <tromey@redhat.com>
* record-full.c (record_full_get_bookmark): Make "args" const.
(record_full_goto_bookmark): Make "raw_bookmark" const.
* record.c (record_goto): New function.
(cmd_record_goto): Use it. Now static.
* record.h (record_goto): Declare.
(cmd_record_goto): Remove declaration.
* target-delegates.c: Rebuild.
* target.h (struct target_ops) <to_get_bookmark,
to_goto_bookmark>: Make parameter const.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index a0a0d30..d0601b8 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -596,10 +596,10 @@ struct target_ops char * (*to_make_corefile_notes) (struct target_ops *, bfd *, int *) TARGET_DEFAULT_FUNC (dummy_make_corefile_notes); /* get_bookmark support method for bookmarks */ - gdb_byte * (*to_get_bookmark) (struct target_ops *, char *, int) + gdb_byte * (*to_get_bookmark) (struct target_ops *, const char *, int) TARGET_DEFAULT_NORETURN (tcomplain ()); /* goto_bookmark support method for bookmarks */ - void (*to_goto_bookmark) (struct target_ops *, gdb_byte *, int) + void (*to_goto_bookmark) (struct target_ops *, const gdb_byte *, int) TARGET_DEFAULT_NORETURN (tcomplain ()); /* Return the thread-local address at OFFSET in the thread-local storage for the thread PTID and the shared library |