From a0aad53764f45a634462288befe4c2eaecbf302d Mon Sep 17 00:00:00 2001 From: James Clarke Date: Fri, 19 Jan 2018 17:22:50 +0000 Subject: gdb: Add missing #ifdef USE_THREAD_DB to gdbserver Otherwise, linking fails with: [...]/linux-low.c:664: undefined reference to `thread_db_notice_clone(thread_info*, ptid_t)' gdb/gdbserver/ChangeLog: * linux-low.c (handle_extended_wait): Surround call to thread_db_notice_clone with #ifdef USE_THREAD_DB. --- gdb/gdbserver/linux-low.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/gdbserver/linux-low.c') diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 8117fc6..38142bb 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -661,7 +661,9 @@ handle_extended_wait (struct lwp_info **orig_event_lwp, int wstat) new_lwp->status_pending = status; } +#ifdef USE_THREAD_DB thread_db_notice_clone (event_thr, ptid); +#endif /* Don't report the event. */ return 1; -- cgit v1.1