From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f3OCgFc15224 for linux-mips-outgoing; Tue, 24 Apr 2001 05:42:15 -0700 Received: from colo.asti-usa.com (IDENT:root@colo.asti-usa.com [205.252.89.99]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f3OCgEM15221 for ; Tue, 24 Apr 2001 05:42:14 -0700 Received: from lineo.com (hal.uk.zentropix.com [212.74.13.151]) by colo.asti-usa.com (8.9.3/8.9.3) with ESMTP id IAA28307; Tue, 24 Apr 2001 08:50:26 -0400 Message-ID: <3AE57586.13A6968F@lineo.com> Date: Tue, 24 Apr 2001 13:45:58 +0100 From: Ian Soanes Organization: Lineo UK X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.4.0-test12 i686) X-Accept-Language: en MIME-Version: 1.0 To: Fabrice Bellard , linux-mips@oss.sgi.com CC: rivers@lexmark.com Subject: Re: gdb single step ? References: <3AE44D0A.9080003@jungo.com> <20010423170425.F4623@bacchus.dhis.org> <3AE541B0.410FDF8A@lineo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ian Soanes wrote: > > Ralf Baechle wrote: > > > > On Mon, Apr 23, 2001 at 06:31:20PM +0200, Fabrice Bellard wrote: > > > > > Did someone make a patch so that gdb can do single step on mips-linux ? If > > > not, do you prefer a patch to gdb or a patch in the kernel to support the > > > PTRACE_SINGLESTEP command ? > > > > Last I used GDB single stepping has been working fine for me, so I wonder > > what is broken? > > > > 2/ Previously I've had some luck single stepping kernel and module code > with the kernel gdbstub (arch/mips/kernel/gdb-stub.c), so I ported the > relevant single stepping code into gdbserver. The results were much > better. The only thing that seems to be wrong now is stepping over > function calls isn't working quite right. I can step into functions OK > though. > Hi, Sorry, I made a mistake (forgetting to clear a breakpoint) when I ported the stub single step code into gdbserver. As far as I can tell, single stepping works fine now. BTW, should I be worried about MIPS16 instructions? (single step breakpoints are always placed on a 4 byte increment) ...or is that a silly question? Best regards, Ian