diff options
author | emaste <emaste@FreeBSD.org> | 2017-08-21 12:23:11 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2017-08-21 12:23:11 +0000 |
commit | 117cc8c1ec5e8ce154269fb1357d75288a295add (patch) | |
tree | 7eca1b14dd2cb8ac7d85db315dcf225ce4057fbe /sys/arm64 | |
parent | c63b809fa171c27fca5d576a93becdb7240799c6 (diff) | |
download | FreeBSD-src-117cc8c1ec5e8ce154269fb1357d75288a295add.zip FreeBSD-src-117cc8c1ec5e8ce154269fb1357d75288a295add.tar.gz |
MFC r322627: arm64: return error instead of panic in unimplemented ptrace ops
We don't need a panic as a reminder that these need to be implemented.
Reported by: Shawn Webb
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/arm64/machdep.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index 70cd12f..7cc3927 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -242,22 +242,24 @@ int fill_dbregs(struct thread *td, struct dbreg *regs) { - panic("ARM64TODO: fill_dbregs"); + printf("ARM64TODO: fill_dbregs"); + return (EDOOFUS); } int set_dbregs(struct thread *td, struct dbreg *regs) { - panic("ARM64TODO: set_dbregs"); + printf("ARM64TODO: set_dbregs"); + return (EDOOFUS); } int ptrace_set_pc(struct thread *td, u_long addr) { - panic("ARM64TODO: ptrace_set_pc"); - return (0); + printf("ARM64TODO: ptrace_set_pc"); + return (EDOOFUS); } int |