PR build/11881: LIBTHREAD_DB_SO can be undefined.
authorPedro Alves <palves@redhat.com>
Tue, 16 Apr 2013 18:12:14 +0000 (18:12 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 16 Apr 2013 18:12:14 +0000 (18:12 +0000)
commite3b50a7f9484bed4bee60c29166ee554f33a5aa2
tree06bb94f8ddc505dd41b82647a05bd977cf23141c
parentdee368d345a422483a5b56baac6d7011c0e2f0db
PR build/11881: LIBTHREAD_DB_SO can be undefined.

This patch:

 http://sourceware.org/ml/gdb-patches/2009-04/msg00115.html

Changed behaviour by only defining LIBTHREAD_DB_SO if thread_db.h exists. The
definition of LIBTHREAD_DB_SO and LIBTHREAD_DB_SEARCH_PATH should be moved
outside of #ifdef HAVE_THREAD_DB_H.

This is based on a patch attached to the PR, however, it needed a
tweak, as it was it broke the HAVE_THREAD_DB_H path.

2013-04-16  Will Newton  <will.newton@gmail.com>
    Pedro Alves  <palves@redhat.com>

PR build/11881

* common/gdb_thread_db.h (LIBTHREAD_DB_SO)
(LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
HAVE_THREAD_DB_H.
gdb/ChangeLog
gdb/common/gdb_thread_db.h