diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-12-04 16:43:53 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-12-04 16:43:53 -0500 |
commit | 28d5518b12119eaf087c64fe25e31d2f49e53485 (patch) | |
tree | 729974cc7c7c46b7bd834fb3a75102f350b20e54 /gdb/infrun.h | |
parent | f5f01699643e923edf7d0c661e330ceff609fac5 (diff) | |
download | gdb-28d5518b12119eaf087c64fe25e31d2f49e53485.zip gdb-28d5518b12119eaf087c64fe25e31d2f49e53485.tar.gz gdb-28d5518b12119eaf087c64fe25e31d2f49e53485.tar.bz2 |
gdb: rename things related to step over chains
Rename step_over_queue_head to global_thread_step_over_chain_head, to
make it more obvious when reading code that we are touching the global
queue. Rename all functions that operate on it to have "global" in
their name, to make it clear on which chain they operate on. Also, in a
subsequent patch, we'll need both global and non-global versions of
these functions, so it will be easier to do the distinction if they are
named properly.
Normalize the naming to use "chain" everywhere instead of sometimes
"queue", sometimes "chain".
I also reworded a few comments in gdbthread.h. They implied that the
step over chain is per-inferior, when in reality there is only one
global chain, not one per inferior, as far as I understand.
gdb/ChangeLog:
* gdbthread.h (thread_step_over_chain_enqueue): Rename to...
(global_thread_step_over_chain_enqueue): ... this. Update all
users.
(thread_step_over_chain_remove): Rename to...
(global_thread_step_over_chain_remove): ... this. Update all
users.
(thread_step_over_chain_next): Rename to...
(global_thread_step_over_chain_next): ... this. Update all
users.
* infrun.h (step_over_queue_head): Rename to...
(global_thread_step_over_chain_head): ... this. Update all
users.
* infrun.c (step_over_queue_head): Rename to...
(global_thread_step_over_chain_head): ... this. Update all
users.
* thread.c (step_over_chain_remove): Rename to...
(thread_step_over_chain_remove): ... this. Update all users.
(thread_step_over_chain_next): Rename to...
(global_thread_step_over_chain_next): ... this. Update all
users.
(thread_step_over_chain_enqueue): Rename to...
(global_thread_step_over_chain_enqueue): ... this. Update all
users.
(thread_step_over_chain_remove): Rename to...
(global_thread_step_over_chain_remove): ... this. Update all
users.
Change-Id: Iabbf57d83c01321ca199d83fadb57f5b04e4d6d9
Diffstat (limited to 'gdb/infrun.h')
-rw-r--r-- | gdb/infrun.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infrun.h b/gdb/infrun.h index 2084d3d..ca0774e 100644 --- a/gdb/infrun.h +++ b/gdb/infrun.h @@ -262,9 +262,9 @@ extern void infrun_async (int enable); loop. */ extern void mark_infrun_async_event_handler (void); -/* The global queue of threads that need to do a step-over operation +/* The global chain of threads that need to do a step-over operation to get past e.g., a breakpoint. */ -extern struct thread_info *step_over_queue_head; +extern struct thread_info *global_thread_step_over_chain_head; /* Remove breakpoints if possible (usually that means, if everything is stopped). On failure, print a message. */ |