[4/5] Remove obsolete comment from gdbthread.h

Message ID 20230707-py-inf-fixes-30615-v1-4-7792ab559530@adacore.com
State New
Headers
Series Fix some Python Inferior methods |

Commit Message

Tom Tromey July 7, 2023, 3:08 p.m. UTC
  A comment in gdbthread.h refers to a global that no longer exists.
---
 gdb/gdbthread.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Pedro Alves July 7, 2023, 6:15 p.m. UTC | #1
On 2023-07-07 16:08, Tom Tromey via Gdb-patches wrote:
> A comment in gdbthread.h refers to a global that no longer exists.

Approved-By: Pedro Alves <pedro@palves.net>

Thanks,
Pedro Alves

> ---
>  gdb/gdbthread.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
> index 7135515bf45..d294be6762b 100644
> --- a/gdb/gdbthread.h
> +++ b/gdb/gdbthread.h
> @@ -764,7 +764,7 @@ extern int thread_count (process_stratum_target *proc_target);
>  /* Return true if we have any thread in any inferior.  */
>  extern bool any_thread_p ();
>  
> -/* Switch context to thread THR.  Also sets the STOP_PC global.  */
> +/* Switch context to thread THR.  */
>  extern void switch_to_thread (struct thread_info *thr);
>  
>  /* Switch context to no thread selected.  */
>
  

Patch

diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 7135515bf45..d294be6762b 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -764,7 +764,7 @@  extern int thread_count (process_stratum_target *proc_target);
 /* Return true if we have any thread in any inferior.  */
 extern bool any_thread_p ();
 
-/* Switch context to thread THR.  Also sets the STOP_PC global.  */
+/* Switch context to thread THR.  */
 extern void switch_to_thread (struct thread_info *thr);
 
 /* Switch context to no thread selected.  */