gdb/linux-fork: simplify one_fork_p
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.
This commit is contained in:
parent
6ae3a726d4
commit
fa47e4463a
2 changed files with 5 additions and 2 deletions
|
@ -110,8 +110,7 @@ find_last_fork (void)
|
|||
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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue