From: Simon Marchi Date: Wed, 21 Oct 2020 19:55:58 +0000 (-0400) Subject: gdb: fix two comments in infrun X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a46d184353e3c0f349c2a484932795e5eac92b8c;p=binutils-gdb.git 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 --- 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)