| To: | Jun Sun <jsun@mvista.com> |
|---|---|
| Subject: | Re: HELP : ptrace returns puzzling results |
| From: | Ralf Baechle <ralf@oss.sgi.com> |
| Date: | Tue, 16 May 2000 22:10:30 +0200 |
| Cc: | linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu |
| In-reply-to: | <39218A14.919D119A@mvista.com>; from jsun@mvista.com on Tue, May 16, 2000 at 10:49:08AM -0700 |
| References: | <392045FC.827CACB5@mvista.com> <20000516133620.C4561@uni-koblenz.de> <39218A14.919D119A@mvista.com> |
| Sender: | owner-linuxmips@oss.sgi.com |
On Tue, May 16, 2000 at 10:49:08AM -0700, Jun Sun wrote: > However, step or next or setting another breakpoint do not work. It > appears that gdbserver calls ptrace with PTRACE_SINGLESTEP option, which > is not implemented in the kernel I am using (it is v2.3.99-pre3). Is > this implemented in the latest version? If not, is it difficult to add > one? Or can we get around without it? PTRACE_SINGLESTEP is meant to be implemented using hardware single stepping. That's something which most MIPS CPUs don't support. It can be simulated in userspace, so there is no point in putting it into the kernel ergo we won't implement it. There's actually a good number of CPUs which don't have hardware breakpoints so you should check what gdbserver does for those other architectures. The generic solution is to write a breakpoint into the logically next instruction(s). Usually that's at epc + 4 but there are branch instructions to make live more entertaining ... Ralf |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Fwd: BOUNCE linux@relay.engr.sgi.com: Non-member submission from [Klaus Naumann <spock@mgnet.de>]], Nancy Bigham |
|---|---|
| Next by Date: | Re: dumb question - where is the latest linux/mips kernel source?, Ralf Baechle |
| Previous by Thread: | Re: HELP : ptrace returns puzzling results, Ralf Baechle |
| Next by Thread: | [Fwd: BOUNCE linux@relay.engr.sgi.com: Non-member submission from [Jun Sun <jsun@mvista.com>]], Nancy Bigham |
| Indexes: | [Date] [Thread] [Top] [All Lists] |