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.
This commit is contained in:
parent
5a6c3296a7
commit
a0aad53764
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue