summaryrefslogtreecommitdiff
path: root/gdb/record.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-04-15 08:59:03 -0600
committerTom Tromey <tromey@redhat.com>2014-06-26 09:14:16 -0600
commitc2bcbb1d04bb46a130f2c84de05cbbdccc0645fc (patch)
tree57a628fb31746a0ac6f918a08f6d9c67f5a81ca6 /gdb/record.h
parent9cbe5fff2b47da85dbc628bdc8c6a85d5344749a (diff)
downloadbinutils-gdb-c2bcbb1d04bb46a130f2c84de05cbbdccc0645fc.tar.gz
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/record.h')
-rw-r--r--gdb/record.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/record.h b/gdb/record.h
index 29784ad1ac9..702d7b6ca21 100644
--- a/gdb/record.h
+++ b/gdb/record.h
@@ -53,8 +53,8 @@ extern int record_read_memory (struct gdbarch *gdbarch,
CORE_ADDR memaddr, gdb_byte *myaddr,
ssize_t len);
-/* The "record goto" command. */
-extern void cmd_record_goto (char *arg, int from_tty);
+/* A wrapper for target_goto_record that parses ARG as a number. */
+extern void record_goto (const char *arg);
/* The default "to_disconnect" target method for record targets. */
extern void record_disconnect (struct target_ops *, const char *, int);