Thread (1 message) 1 message, 1 author, 2011-03-10
DORMANTno replies

[PATCH 1/2] ARM: fix compiling error due to debug_info change

From: Bryan Wu <hidden>
Date: 2011-03-10 03:41:27

On Mon, Mar 7, 2011 at 6:42 PM, Will Deacon [off-list ref] wrote:
Hi Bryan,
quoted
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.
quoted
This bug was introduced by "ARM: 6668/1: ptrace: remove single-step emulation code" from Will Deacon

Cc: Will Deacon <redacted>
Signed-off-by: Bryan Wu <redacted>
---
?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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help