aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdbserver/server.cc')
-rw-r--r--gdbserver/server.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbserver/server.cc b/gdbserver/server.cc
index d802e8b..21fb51a 100644
--- a/gdbserver/server.cc
+++ b/gdbserver/server.cc
@@ -1443,7 +1443,8 @@ handle_qxfer_auxv (const char *annex,
if (annex[0] != '\0' || current_thread == NULL)
return -1;
- return the_target->read_auxv (offset, readbuf, len);
+ return the_target->read_auxv (current_thread->id.pid (), offset, readbuf,
+ len);
}
/* Handle qXfer:exec-file:read. */