/* Native debugging support for GNU/Linux (LWP layer).
- Copyright (C) 2000-2016 Free Software Foundation, Inc.
+ Copyright (C) 2000-2018 Free Software Foundation, Inc.
This file is part of GDB.
/* Arch-specific additions. */
struct arch_lwp_info *arch_private;
- /* Next LWP in list. */
+ /* Previous and next pointers in doubly-linked list of known LWPs,
+ sorted by reverse creation order. */
+ struct lwp_info *prev;
struct lwp_info *next;
};
/* Register a method to call whenever a new thread is attached. */
void linux_nat_set_new_thread (struct target_ops *, void (*) (struct lwp_info *));
+/* Register a method to call whenever a new thread is deleted. */
+void linux_nat_set_delete_thread (struct target_ops *,
+ void (*) (struct arch_lwp_info *));
/* Register a method to call whenever a new fork is attached. */
typedef void (linux_nat_new_fork_ftype) (struct lwp_info *parent,