From a46d184353e3c0f349c2a484932795e5eac92b8c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 21 Oct 2020 15:55:58 -0400 Subject: [PATCH] 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 --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 89dff4bbd89..75e7ee1428c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-10-21 Simon Marchi + + * infrun.c (displaced_step_in_progress_thread): Fix comment. + (displaced_step_in_progress): Fix comment. + 2020-10-21 Simon Marchi * gdbarch.sh (make_corefile_notes): Return unique pointer. diff --git a/gdb/infrun.c b/gdb/infrun.c index 942c3df20e0..c2acea65982 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.30.2