linux-mips
[Top] [All Lists]

Re: Filling in struct mips64_watch_regs from a 32 bit process

To: David Daney <ddaney@caviumnetworks.com>
Subject: Re: Filling in struct mips64_watch_regs from a 32 bit process
From: Earl Chew <echew@ixiacom.com>
Date: Mon, 31 Jan 2011 17:12:28 -0800
Cc: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
In-reply-to: <4D475BCB.9050403@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4D4756B5.4010100@ixiacom.com> <4D475BCB.9050403@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
>> I notice that a 32 bit process running on a 64 bit kernel is expected to
>> know that it should fill in mips64_watch_regs --- even though it is running
>> against a 32 bit ABI.
>>
>> Is this an oversight, or am I missing something ?
> 
> It is intentional.

Oh I see ... I have to call PTRACE_SET_WATCH_REGS first in order to figure
out whether the kernel is expecting me to use pt_watch_style_mips32 or
pt_watch_style_mips64.

Thanks.

Earl

<Prev in Thread] Current Thread [Next in Thread>