From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4185 invoked by alias); 7 Nov 2004 02:38:38 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4177 invoked from network); 7 Nov 2004 02:38:37 -0000 Received: from unknown (HELO beyond.lidskialf.net) (62.3.233.115) by sourceware.org with SMTP; 7 Nov 2004 02:38:37 -0000 Received: from monstrousfish (monstrousfish [172.16.1.2]) by beyond.lidskialf.net (Postfix) with ESMTP id 229414824E3; Sun, 7 Nov 2004 02:38:37 +0000 (GMT) From: Andrew de Quincey To: gdb@sources.redhat.com Subject: Re: GDB 6.2.1 with powerpc platform and uclibc and user breakpoint problem Date: Sun, 07 Nov 2004 05:18:00 -0000 User-Agent: KMail/1.7.1 Cc: Daniel Jacobowitz References: <200411061434.45201.adq_dvb@lidskialf.net> <20041107021019.GA26731@nevyn.them.org> In-Reply-To: <20041107021019.GA26731@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411070238.44624.adq_dvb@lidskialf.net> X-SW-Source: 2004-11/txt/msg00052.txt.bz2 On Sunday 07 Nov 2004 02:10, Daniel Jacobowitz wrote: > On Sat, Nov 06, 2004 at 02:34:45PM +0000, Andrew de Quincey wrote: > > -- this is the internal breakpoint on _dl_debug_state being triggered. I > > see this in my kernel tracing in the trap handlers. > > > > RX: m10000548,4 > > TX: 7d821008 > > RX: M10000548,4:38000000 > > TX: OK > > RX: m300018d4,4 > > TX: 7d821008 > > RX: M300018d4,4:801c005c > > TX: OK > > > > -- GDB is clearing the breakpoints *INCLUDING MY USER BREAKPOINT* - it > > has removed the trap instruction and set it back to 0x38000000. why is it > > doing this!?! > > So that it can step past the breakpoint. > > > RX: m10010904,b0 > > TX: > > 00000001000000010000000c1000036c0000000d1000089c0000000410000128000000051 > >00002680000000610000 RX: m30005004,4 > > TX: 00000000 > > RX: vCont;s > > That's a step request. > > > TX: T0b01:7ffffa60;40:1000056c; > > That's a segfault. Your kernel has failed to implement > PTRACE_SINGLESTEP correctly. This is a common problem on older 4xx > kernels. Nice one! Thats it exactly. Thank you so much! Interesting, this means our vendor has never had breakpoints working in GDB either. Hmmmm.....