aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/inferiors.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdbserver/inferiors.cc')
-rw-r--r--gdbserver/inferiors.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/inferiors.cc b/gdbserver/inferiors.cc
index 93555ec..d447808 100644
--- a/gdbserver/inferiors.cc
+++ b/gdbserver/inferiors.cc
@@ -44,8 +44,8 @@ add_thread (ptid_t thread_id, void *target_data)
process_info *process = find_process_pid (thread_id.pid ());
gdb_assert (process != nullptr);
- auto &new_thread = process->thread_list ().emplace_back (thread_id,
- target_data);
+ auto &new_thread
+ = process->thread_list ().emplace_back (thread_id, process, target_data);
bool inserted
= process->thread_map ().insert ({thread_id, &new_thread}).second;