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



The following reply was made to PR port-hppa/56866; it has been noted by GNATS.

From: Rin Okuyama <rokuyama.rk%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost, port-hppa-maintainer%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-hppa/56866: hppa: kernel gets confused between actual
 breakpoints and single-step breakpoints
Date: Tue, 7 Jun 2022 21:04:33 +0900

 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