This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH obv] remote.c: Use ptid_t instead of struct ptid
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Tue, 4 Apr 2017 10:34:01 -0400
- Subject: [PATCH obv] remote.c: Use ptid_t instead of struct ptid
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=ericsson.com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
From: Simon Marchi <simon.marchi@polymtl.ca>
FYI, I pushed this as obvious.
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.
---
gdb/ChangeLog | 5 +++++
gdb/remote.c | 10 +++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0fa4770ee4..fc8dbe18da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * remote.c (set_general_thread, set_continue_thread): Use ptid_t
+ instead of struct ptid.
+
2017-05-04 Alan Hayward <alan.hayward@arm.com>
* frame.c (get_frame_register_bytes): Unwind using value.
diff --git a/gdb/remote.c b/gdb/remote.c
index 2791ac8fb8..73a2e5124e 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);
}
--
2.11.0