aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2017-04-04 10:31:50 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2017-04-04 10:31:50 -0400
commitd62a8ae2dd0fbb6235f4e8f2fb61b83fe4ba1d90 (patch)
tree494a31c857860e41d83162784adaf4f44a8c720e /gdb/remote.c
parentad32986fdf9da1c8748e47b8b45100398223dba8 (diff)
downloadgdb-d62a8ae2dd0fbb6235f4e8f2fb61b83fe4ba1d90.zip
gdb-d62a8ae2dd0fbb6235f4e8f2fb61b83fe4ba1d90.tar.gz
gdb-d62a8ae2dd0fbb6235f4e8f2fb61b83fe4ba1d90.tar.bz2
remote.c: Use ptid_t instead of struct ptid
It's the only place in the codebase that uses "struct ptid", so change it to ptid_t for consistency. gdb/ChangeLog: * remote.c (set_general_thread, set_continue_thread): Use ptid_t instead of struct ptid.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 2791ac8..73a2e51 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -141,8 +141,8 @@ static void remote_thread_events (struct target_ops *ops, int enable);
static void interrupt_query (void);
-static void set_general_thread (struct ptid ptid);
-static void set_continue_thread (struct ptid ptid);
+static void set_general_thread (ptid_t ptid);
+static void set_continue_thread (ptid_t ptid);
static void get_offsets (void);
@@ -2187,7 +2187,7 @@ remote_program_signals (struct target_ops *self,
thread. If GEN is set, set the general thread, if not, then set
the step/continue thread. */
static void
-set_thread (struct ptid ptid, int gen)
+set_thread (ptid_t ptid, int gen)
{
struct remote_state *rs = get_remote_state ();
ptid_t state = gen ? rs->general_thread : rs->continue_thread;
@@ -2216,13 +2216,13 @@ set_thread (struct ptid ptid, int gen)
}
static void
-set_general_thread (struct ptid ptid)
+set_general_thread (ptid_t ptid)
{
set_thread (ptid, 1);
}
static void
-set_continue_thread (struct ptid ptid)
+set_continue_thread (ptid_t ptid)
{
set_thread (ptid, 0);
}