at. */
bpstat stop_bpstat;
- /* The interpreter that issued the execution command. NULL if the
- thread was resumed as a result of a command applied to some other
- thread (e.g., "next" with scheduler-locking off). */
- struct interp *command_interp;
-
/* Whether the command that started the thread was a stepping
command. This is used to decide whether "set scheduler-locking
step" behaves like "on" or "off". */
Above, both inferiors 1 and 2 have threads numbered 1-3, but each
thread has its own unique global ID. */
- /* The thread's global GDB thread number. This is exposed to MI and
- Python/Scheme. */
+ /* The thread's global GDB thread number. This is exposed to MI,
+ Python/Scheme, visible with "info threads -gid", and is also what
+ the $_gthread convenience variable is bound to. */
int global_num;
/* The per-inferior thread number. This is unique in the inferior
executing). */
extern void validate_registers_access (void);
+/* Returns whether to show which thread hit the breakpoint, received a
+ signal, etc. and ended up causing a user-visible stop. This is
+ true iff we ever detected multiple threads. */
+extern int show_thread_that_caused_stop (void);
+
extern struct thread_info *thread_list;
#endif /* GDBTHREAD_H */