libdwfl: linux-pid-attach.c (pid_next_thread): Use rewinddir on first call.
authorMark Wielaard <mjw@redhat.com>
Tue, 17 Dec 2013 09:37:29 +0000 (10:37 +0100)
committerMark Wielaard <mjw@redhat.com>
Tue, 17 Dec 2013 09:37:29 +0000 (10:37 +0100)
commitc76b2ff3eebc04c628ea7475c7ea0abb6cf0ff0d
treed625280c743da316d4b925aa9ce6137aa46c9e99
parent14c2d9e614cb0e3fd50ad757eaba686b37699580
libdwfl: linux-pid-attach.c (pid_next_thread): Use rewinddir on first call.

dwfl_getthreads would otherwise fail to report any threads after it was
called once.

Reported-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdwfl/ChangeLog
libdwfl/linux-pid-attach.c