diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:44:20 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:36 -0700 |
commit | c378d69dffc04b96a99e08f8df7a117ac0e57dbf (patch) | |
tree | 16289a0151127fc213bef66e5ac3bf1704bc67b6 /gdb/remote.c | |
parent | bd7ae0f5ac99eac95313ae91ae705c45f669f20f (diff) | |
download | gdb-c378d69dffc04b96a99e08f8df7a117ac0e57dbf.zip gdb-c378d69dffc04b96a99e08f8df7a117ac0e57dbf.tar.gz gdb-c378d69dffc04b96a99e08f8df7a117ac0e57dbf.tar.bz2 |
Add target_ops argument to to_set_permissions
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_set_permissions>: Add argument.
(target_set_permissions): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_set_permissions): Add 'self' argument.
(remote_start_remote): Update.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index bd420aa..7a62fdc 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -196,7 +196,7 @@ static void show_remote_protocol_packet_cmd (struct ui_file *file, static char *write_ptid (char *buf, const char *endbuf, ptid_t ptid); static ptid_t read_ptid (char *buf, char **obuf); -static void remote_set_permissions (void); +static void remote_set_permissions (struct target_ops *self); struct remote_state; static int remote_get_trace_status (struct target_ops *self, @@ -3357,7 +3357,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p) /* If the stub wants to get a QAllow, compose one and send it. */ if (remote_protocol_packets[PACKET_QAllow].support != PACKET_DISABLE) - remote_set_permissions (); + remote_set_permissions (target); /* Next, we possibly activate noack mode. @@ -3757,7 +3757,7 @@ remote_serial_open (char *name) permissions. */ void -remote_set_permissions (void) +remote_set_permissions (struct target_ops *self) { struct remote_state *rs = get_remote_state (); |