This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/2] gdb: Add missing #ifdef USE_THREAD_DB to gdbserver
- From: James Clarke <jrtc27 at jrtc27 dot com>
- To: binutils at sourceware dot org
- Cc: James Clarke <jrtc27 at jrtc27 dot com>
- Date: Thu, 14 Dec 2017 23:32:42 +0000
- Subject: [PATCH 2/2] gdb: Add missing #ifdef USE_THREAD_DB to gdbserver
- Authentication-results: sourceware.org; auth=none
- References: <20171214233242.45301-1-jrtc27@jrtc27.com>
gdb/ChangeLog:
* gdbserver/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(+)
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index f6a52d5..398cd70 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;
--
1.7.10.4