]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[libthr] revert change of visibility of _thread_keytable to unbreak debugger
authormizhka <mizhka@FreeBSD.org>
Mon, 2 Oct 2017 20:33:16 +0000 (20:33 +0000)
committermizhka <mizhka@FreeBSD.org>
Mon, 2 Oct 2017 20:33:16 +0000 (20:33 +0000)
commitcc1f74e81388b8a1067752f40df01b5eb3f6fd8e
treea05408cace1d792763941dbb76773039c8e97af4
parent3e60409b2ace32459c2f68df761976315b757159
[libthr] revert change of visibility of _thread_keytable to unbreak debugger

Fix regression by r318539. The sysutils/pstack uses library libthread_db to
read information about threads state. The function pt_ta_new makes lookup of
several key symbols including _thread_keytable. But r318539 mades this field
static. It causes silent ignore of libthr library by pstack and as result
sysutils/pstack doesn't output any thread information.

This fix changes this field back to non-static.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D11738
lib/libthr/thread/thr_private.h
lib/libthr/thread/thr_spec.c