NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-hppa/56866: hppa: kernel gets confused between actual breakpoints and single-step breakpoints
I'm not familiar to hppa, but this seems like something more than
si_code.
Probably, we should check whether the breakpoint was inserted by
ptrace(2) or not. This is what we do for powerpc/{ibm4xx,booke},
for which the software single-stepping is implemented. See:
https://nxr.netbsd.org/xref/src/sys/arch/powerpc/ibm4xx/trap.c#300
https://nxr.netbsd.org/xref/src/sys/arch/powerpc/powerpc/process_machdep.c#286
Note that we use two breakpoints for powerpc in general, at PC+4
and address where it can branch into.
Thanks,
rin
Home |
Main Index |
Thread Index |
Old Index