Unless I'm missing something, this function is a complicated way of
saying "fork_list.size () == 1".
gdb/ChangeLog:
* linux-fork.c (one_fork_p): Simplify.
+2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * linux-fork.c (one_fork_p): Simplify.
+
2020-01-17 Simon Marchi <simon.marchi@efficios.com>
* top.c (struct qt_args): Remove.
static bool
one_fork_p ()
{
- return (!fork_list.empty ()
- && &fork_list.front () == &fork_list.back ());
+ return fork_list.size () == 1;
}
/* Add a new fork to the internal fork list. */