constify get_bookmark and goto_bookmark
authorTom Tromey <tromey@redhat.com>
Mon, 15 Apr 2013 14:59:03 +0000 (08:59 -0600)
committerTom Tromey <tromey@redhat.com>
Thu, 26 Jun 2014 15:14:16 +0000 (09:14 -0600)
commitc2bcbb1d04bb46a130f2c84de05cbbdccc0645fc
tree57a628fb31746a0ac6f918a08f6d9c67f5a81ca6
parent9cbe5fff2b47da85dbc628bdc8c6a85d5344749a
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.
gdb/ChangeLog
gdb/record-full.c
gdb/record.c
gdb/record.h
gdb/target-delegates.c
gdb/target.h