* [pushed] gdb: fix two comments in infrun
@ 2020-10-21 19:57 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2020-10-21 19:57 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
These comments are stale, they refer to non-existent parameters. Fix
that.
gdb/ChangeLog:
* infrun.c (displaced_step_in_progress_thread): Fix comment.
(displaced_step_in_progress): Fix comment.
Change-Id: I7a39f1338fbfbf73153b49cbca0345d495d12762
---
gdb/ChangeLog | 5 +++++
gdb/infrun.c | 5 ++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 89dff4bbd89d..75e7ee1428c1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2020-10-21 Simon Marchi <simon.marchi@efficios.com>
+
+ * infrun.c (displaced_step_in_progress_thread): Fix comment.
+ (displaced_step_in_progress): Fix comment.
+
2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
* gdbarch.sh (make_corefile_notes): Return unique pointer.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 942c3df20e0d..c2acea65982b 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1500,8 +1500,7 @@ displaced_step_in_progress_any_inferior ()
return false;
}
-/* Return true if thread represented by PTID is doing a displaced
- step. */
+/* Return true if THREAD is doing a displaced step. */
static bool
displaced_step_in_progress_thread (thread_info *thread)
@@ -1511,7 +1510,7 @@ displaced_step_in_progress_thread (thread_info *thread)
return get_displaced_stepping_state (thread->inf)->step_thread == thread;
}
-/* Return true if process PID has a thread doing a displaced step. */
+/* Return true if INF has a thread doing a displaced step. */
static bool
displaced_step_in_progress (inferior *inf)
--
2.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-21 19:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 19:57 [pushed] gdb: fix two comments in infrun Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).