diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-14 20:33:36 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-14 20:33:36 +0000 |
commit | ca623f82a4ce0c6428a3e42aa13667d65bd97c9e (patch) | |
tree | cb2850aab8497a97f054081986f1fae3966f1a62 | |
parent | 503ebb2c1de7f1710f8f9633feb60821f6aac552 (diff) | |
download | gdb-ca623f82a4ce0c6428a3e42aa13667d65bd97c9e.zip gdb-ca623f82a4ce0c6428a3e42aa13667d65bd97c9e.tar.gz gdb-ca623f82a4ce0c6428a3e42aa13667d65bd97c9e.tar.bz2 |
* remote.c (remote_set_trace_notes): Make arguments const.
* target.c (update_current_target): Update cast.
* target.h (to_set_trace_notes): Make arguments const.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/remote.c | 3 | ||||
-rw-r--r-- | gdb/target.c | 2 | ||||
-rw-r--r-- | gdb/target.h | 3 |
4 files changed, 11 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 24668e1..db4d2fa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2013-05-14 Tom Tromey <tromey@redhat.com> + * remote.c (remote_set_trace_notes): Make arguments const. + * target.c (update_current_target): Update cast. + * target.h (to_set_trace_notes): Make arguments const. + +2013-05-14 Tom Tromey <tromey@redhat.com> + * go32-nat.c (go32_terminal_info): Make 'args' const. * inferior.h (child_terminal_info): Update. * inflow.c (child_terminal_info): Make 'args' const. diff --git a/gdb/remote.c b/gdb/remote.c index 7cae940..51bf025 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -11126,7 +11126,8 @@ remote_set_trace_buffer_size (LONGEST val) } static int -remote_set_trace_notes (char *user, char *notes, char *stop_notes) +remote_set_trace_notes (const char *user, const char *notes, + const char *stop_notes) { struct remote_state *rs = get_remote_state (); char *reply; diff --git a/gdb/target.c b/gdb/target.c index 1c0134f..8653dac 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -946,7 +946,7 @@ update_current_target (void) (void (*) (LONGEST)) target_ignore); de_fault (to_set_trace_notes, - (int (*) (char *, char *, char *)) + (int (*) (const char *, const char *, const char *)) return_zero); de_fault (to_get_tib_address, (int (*) (ptid_t, CORE_ADDR *)) diff --git a/gdb/target.h b/gdb/target.h index af1135e..e937d39 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -817,7 +817,8 @@ struct target_ops /* Add/change textual notes about the trace run, returning 1 if successful, 0 otherwise. */ - int (*to_set_trace_notes) (char *user, char *notes, char* stopnotes); + int (*to_set_trace_notes) (const char *user, const char *notes, + const char *stopnotes); /* Return the processor core that thread PTID was last seen on. This information is updated only when: |