aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-10-21 15:55:58 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-10-21 15:55:58 -0400
commita46d184353e3c0f349c2a484932795e5eac92b8c (patch)
tree77b494f5eb48a051c47b26130800e9a1d985583c
parent0d01fbe64f6f3f66fb6bd3b4e79e389e600b69a2 (diff)
downloadgdb-a46d184353e3c0f349c2a484932795e5eac92b8c.zip
gdb-a46d184353e3c0f349c2a484932795e5eac92b8c.tar.gz
gdb-a46d184353e3c0f349c2a484932795e5eac92b8c.tar.bz2
gdb: fix two comments in infrun
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
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 89dff4b..75e7ee1 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 942c3df..c2acea6 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)