gdb/linux-fork: simplify one_fork_p
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 19 Jan 2020 16:54:02 +0000 (11:54 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 19 Jan 2020 16:54:02 +0000 (11:54 -0500)
commitfa47e4463ab4ee4ddc7858ab11063c7965b232ac
tree0061c03a67b96b08855a7b46c42037c9cb32f5bf
parent6ae3a726d4c5cfa01630663536d0d2cae94b0542
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.
gdb/ChangeLog
gdb/linux-fork.c