+2015-07-09 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
+ argument ptid. Update comments. Caller update.
+
2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
* btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
}
\f
-/* Get the hardware debug register capacity information. */
+/* Get the hardware debug register capacity information from the
+ inferior represented by PTID. */
static void
-aarch64_linux_get_debug_reg_capacity (void)
+aarch64_linux_get_debug_reg_capacity (ptid_t ptid)
{
int tid;
struct iovec iov;
struct user_hwdebug_state dreg_state;
- tid = get_thread_id (inferior_ptid);
+ tid = get_thread_id (ptid);
iov.iov_base = &dreg_state;
iov.iov_len = sizeof (dreg_state);
ptid_t ptid)
{
aarch64_forget_process (ptid_get_pid (ptid));
- aarch64_linux_get_debug_reg_capacity ();
+ aarch64_linux_get_debug_reg_capacity (ptid);
super_post_startup_inferior (self, ptid);
}