* [PATCH] Pass ptid to aarch64_linux_get_debug_reg_capacity
@ 2015-07-07 16:24 Yao Qi
2015-07-09 11:56 ` Yao Qi
0 siblings, 1 reply; 2+ messages in thread
From: Yao Qi @ 2015-07-07 16:24 UTC (permalink / raw)
To: gdb-patches
This patch is to pass ptid to aarch64_linux_get_debug_reg_capacity,
and stop using global variable inferior_ptid.
gdb:
2015-07-07 Yao Qi <yao.qi@linaro.org>
* aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
argument ptid. Update comments. Caller update.
---
gdb/aarch64-linux-nat.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index d9b2665..bffb199 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -838,16 +838,17 @@ ps_get_thread_area (const struct ps_prochandle *ph,
}
\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);
@@ -902,7 +903,7 @@ aarch64_linux_child_post_startup_inferior (struct target_ops *self,
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);
}
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Pass ptid to aarch64_linux_get_debug_reg_capacity
2015-07-07 16:24 [PATCH] Pass ptid to aarch64_linux_get_debug_reg_capacity Yao Qi
@ 2015-07-09 11:56 ` Yao Qi
0 siblings, 0 replies; 2+ messages in thread
From: Yao Qi @ 2015-07-09 11:56 UTC (permalink / raw)
To: gdb-patches
On 07/07/15 17:24, Yao Qi wrote:
> 2015-07-07 Yao Qi<yao.qi@linaro.org>
>
> * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
> argument ptid. Update comments. Caller update.
I pushed it in.
--
Yao (é½å°§)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-09 11:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-07 16:24 [PATCH] Pass ptid to aarch64_linux_get_debug_reg_capacity Yao Qi
2015-07-09 11:56 ` Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).