hw-breakpoints: Fix broken a.out format dump

Fix the broken a.out format dump. For now we only dump the ptrace
breakpoints.

TODO: Dump every perf breakpoints for the current thread, not only
ptrace based ones.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: "K. Prasad" <prasad@linux.vnet.ibm.com>
This commit is contained in:
Frederic Weisbecker
2009-11-09 21:03:43 +01:00
parent 676c0dbe6e
commit 9f6b3c2c30
3 changed files with 39 additions and 8 deletions

View File

@@ -89,6 +89,8 @@ static inline void hw_breakpoint_disable(void)
set_debugreg(0UL, 3);
}
extern void aout_dump_debugregs(struct user *dump);
#ifdef CONFIG_KVM
extern void hw_breakpoint_restore(void);
#endif