* [PATCH 1/2] ARM: fix compiling error due to debug_info change
@ 2011-03-07 10:31 Bryan Wu
2011-03-07 10:42 ` Will Deacon
[not found] ` <-6991351870718115910@unknownmsgid>
0 siblings, 2 replies; 3+ messages in thread
From: Bryan Wu @ 2011-03-07 10:31 UTC (permalink / raw)
To: linux-arm-kernel
CC [M] crypto/xcbc.o
In file included from /opt/git/ubuntu/roc/natty/fs/binfmt_aout.c:32:
/opt/git/ubuntu/roc/natty/arch/arm/include/asm/a.out-core.h: In function ?aout_dump_thread?:
/opt/git/ubuntu/roc/natty/arch/arm/include/asm/a.out-core.h:35: error: ?struct debug_info? has no member named ?bp?
/opt/git/ubuntu/roc/natty/arch/arm/include/asm/a.out-core.h:36: error: ?struct debug_info? has no member named ?bp?
/opt/git/ubuntu/roc/natty/arch/arm/include/asm/a.out-core.h:37: error: ?struct debug_info? has no member named ?bp?
/opt/git/ubuntu/roc/natty/arch/arm/include/asm/a.out-core.h:38: error: ?struct debug_info? has no member named ?bp?
/opt/git/ubuntu/roc/natty/arch/arm/include/asm/a.out-core.h:39: error: ?struct debug_info? has no member named ?nsaved?
make[3]: *** [fs/binfmt_aout.o] Error 1
make[2]: *** [fs] Error 2
This bug was introduced by "ARM: 6668/1: ptrace: remove single-step emulation code" from Will Deacon
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
---
arch/arm/include/asm/a.out-core.h | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/arch/arm/include/asm/a.out-core.h b/arch/arm/include/asm/a.out-core.h
index 93d04ac..639f5c8 100644
--- a/arch/arm/include/asm/a.out-core.h
+++ b/arch/arm/include/asm/a.out-core.h
@@ -32,12 +32,6 @@ static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump)
dump->u_dsize = (tsk->mm->brk - tsk->mm->start_data + PAGE_SIZE - 1) >> PAGE_SHIFT;
dump->u_ssize = 0;
- dump->u_debugreg[0] = tsk->thread.debug.bp[0].address;
- dump->u_debugreg[1] = tsk->thread.debug.bp[1].address;
- dump->u_debugreg[2] = tsk->thread.debug.bp[0].insn.arm;
- dump->u_debugreg[3] = tsk->thread.debug.bp[1].insn.arm;
- dump->u_debugreg[4] = tsk->thread.debug.nsaved;
-
if (dump->start_stack < 0x04000000)
dump->u_ssize = (0x04000000 - dump->start_stack) >> PAGE_SHIFT;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 1/2] ARM: fix compiling error due to debug_info change
2011-03-07 10:31 [PATCH 1/2] ARM: fix compiling error due to debug_info change Bryan Wu
@ 2011-03-07 10:42 ` Will Deacon
[not found] ` <-6991351870718115910@unknownmsgid>
1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2011-03-07 10:42 UTC (permalink / raw)
To: linux-arm-kernel
Hi Bryan,
> Subject: [PATCH 1/2] ARM: fix compiling error due to debug_info change
Is there a patch 2/2 as well? (I only received this one).
> This bug was introduced by "ARM: 6668/1: ptrace: remove single-step emulation code" from Will Deacon
>
> Cc: Will Deacon <will.deacon@arm.com>
> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
> ---
> arch/arm/include/asm/a.out-core.h | 6 ------
> 1 files changed, 0 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/include/asm/a.out-core.h b/arch/arm/include/asm/a.out-core.h
> index 93d04ac..639f5c8 100644
> --- a/arch/arm/include/asm/a.out-core.h
> +++ b/arch/arm/include/asm/a.out-core.h
> @@ -32,12 +32,6 @@ static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump)
> dump->u_dsize = (tsk->mm->brk - tsk->mm->start_data + PAGE_SIZE - 1) >> PAGE_SHIFT;
> dump->u_ssize = 0;
>
> - dump->u_debugreg[0] = tsk->thread.debug.bp[0].address;
> - dump->u_debugreg[1] = tsk->thread.debug.bp[1].address;
> - dump->u_debugreg[2] = tsk->thread.debug.bp[0].insn.arm;
> - dump->u_debugreg[3] = tsk->thread.debug.bp[1].insn.arm;
> - dump->u_debugreg[4] = tsk->thread.debug.nsaved;
> -
> if (dump->start_stack < 0x04000000)
> dump->u_ssize = (0x04000000 - dump->start_stack) >> PAGE_SHIFT;
Damn, looks like I forgot to update this code. I think it might be better
to memset zero the u_debugreg array rather than ignore the assignment and
also add a comment to struct user to explain that thie field is no longer
used.
Will
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] ARM: fix compiling error due to debug_info change
[not found] ` <-6991351870718115910@unknownmsgid>
@ 2011-03-10 3:41 ` Bryan Wu
0 siblings, 0 replies; 3+ messages in thread
From: Bryan Wu @ 2011-03-10 3:41 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Mar 7, 2011 at 6:42 PM, Will Deacon <will.deacon@arm.com> wrote:
> Hi Bryan,
>
>> Subject: [PATCH 1/2] ARM: fix compiling error due to debug_info change
>
> Is there a patch 2/2 as well? (I only received this one).
>
Oops, my mistake.
>> This bug was introduced by "ARM: 6668/1: ptrace: remove single-step emulation code" from Will Deacon
>>
>> Cc: Will Deacon <will.deacon@arm.com>
>> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
>> ---
>> ?arch/arm/include/asm/a.out-core.h | ? ?6 ------
>> ?1 files changed, 0 insertions(+), 6 deletions(-)
>>
>> diff --git a/arch/arm/include/asm/a.out-core.h b/arch/arm/include/asm/a.out-core.h
>> index 93d04ac..639f5c8 100644
>> --- a/arch/arm/include/asm/a.out-core.h
>> +++ b/arch/arm/include/asm/a.out-core.h
>> @@ -32,12 +32,6 @@ static inline void aout_dump_thread(struct pt_regs *regs, struct user *dump)
>> ? ? ? dump->u_dsize = (tsk->mm->brk - tsk->mm->start_data + PAGE_SIZE - 1) >> PAGE_SHIFT;
>> ? ? ? dump->u_ssize = 0;
>>
>> - ? ? dump->u_debugreg[0] = tsk->thread.debug.bp[0].address;
>> - ? ? dump->u_debugreg[1] = tsk->thread.debug.bp[1].address;
>> - ? ? dump->u_debugreg[2] = tsk->thread.debug.bp[0].insn.arm;
>> - ? ? dump->u_debugreg[3] = tsk->thread.debug.bp[1].insn.arm;
>> - ? ? dump->u_debugreg[4] = tsk->thread.debug.nsaved;
>> -
>> ? ? ? if (dump->start_stack < 0x04000000)
>> ? ? ? ? ? ? ? dump->u_ssize = (0x04000000 - dump->start_stack) >> PAGE_SHIFT;
>
> Damn, looks like I forgot to update this code. I think it might be better
> to memset zero the u_debugreg array rather than ignore the assignment and
> also add a comment to struct user to explain that thie field is no longer
> used.
>
That makes sense. I will update a patch for you soon.
-Bryan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-10 3:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 10:31 [PATCH 1/2] ARM: fix compiling error due to debug_info change Bryan Wu
2011-03-07 10:42 ` Will Deacon
[not found] ` <-6991351870718115910@unknownmsgid>
2011-03-10 3:41 ` Bryan Wu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.