aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Clarke <jrtc27@jrtc27.com>2018-01-19 17:22:50 +0000
committerPedro Alves <palves@redhat.com>2018-01-19 18:18:58 +0000
commita0aad53764f45a634462288befe4c2eaecbf302d (patch)
treeeb5d1d89e46917de6a8904d0bee31eb7a61523bf
parent5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8 (diff)
downloadgdb-a0aad53764f45a634462288befe4c2eaecbf302d.zip
gdb-a0aad53764f45a634462288befe4c2eaecbf302d.tar.gz
gdb-a0aad53764f45a634462288befe4c2eaecbf302d.tar.bz2
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.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index f183655..877b6e6 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-19 James Clarke <jrtc27@jrtc27.com>
+
+ * linux-low.c (handle_extended_wait): Surround call to
+ thread_db_notice_clone with #ifdef USE_THREAD_DB.
+
2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
* linux-low.c (attach_proc_task_lwp_callback): Adjust to
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;