From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28918 invoked by alias); 30 Nov 2005 02:30:07 -0000 Received: (qmail 28845 invoked by uid 22791); 30 Nov 2005 02:30:06 -0000 X-Spam-Check-By: sourceware.org Received: from bay109-f24.bay109.hotmail.com (HELO hotmail.com) (64.4.19.34) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Nov 2005 02:30:04 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 29 Nov 2005 18:30:01 -0800 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Wed, 30 Nov 2005 02:30:01 GMT X-Sender: alula418@hotmail.com In-Reply-To: <8f2776cb0511282201y3fcbd125w16da2303780954aa@mail.gmail.com> From: "yang xiaoli" To: jimb@red-bean.com Cc: gdb@sourceware.org Bcc: Subject: Re: local gdb could not stop at breakpoint? Date: Wed, 30 Nov 2005 02:47:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00632.txt.bz2 Jim Blandy: yes, this time I compile gdb-6.3 for native debugger, it can stop at breakpoints, Maybe gdb-6.0 is too old. Thanks for your help. configure script has a problem, I modified gdb-6.3/readline/configure at line 6261: erase "{ (exit 1); exit 1; };" so it can cross-compile to native debugger. >From: Jim Blandy >To: yang xiaoli >CC: gdb@sourceware.org >Subject: Re: local gdb could not stop at breakpoint? >Date: Mon, 28 Nov 2005 22:01:02 -0800 > >On 11/28/05, yang xiaoli wrote: > > I compile gdb6.0 for arm , now it works, but when I debug a program and set > > breakpoint at a line, it does't stop at breakpoint, it runs over, for > > example like this: > > > > (gdb)l > > 1 #include > > 2 int main() > > 3 { > > 4 int a, b; > > 5 > > 6 a = 10; > > 7 b = 20; > > 8 printf("hello world\n"); > > 9 printf("a+b= %d", a+b); > > (gdb)b 6 > > (gdb)r > > Startomg program... > > hello world > > a+b= 30 > > > > Program exited normally > > (gdb) > > > > when I see breakpoints using command "info b" ,it display the breakpoints > > information normally, why it does not stop at breakpoints? > >When you post a bug report, or a question like this, it's important to >provide all the information we would need to try things out on our own >machine (assuming we have an ARM-linux system handy, which some of us >do). In this case: >- You haven't included complete source code for your test program. >- You haven't showed us how you compiled it. >- You have clipped out sections of the GDB transcript that would tell >us how you're connecting to the target --- target remote, native, etc. > But I remember from your previous message that you're doing native >debugging, so that's fine. >- Since you're doing native debugging, we might need to know which >kernel you're running. > >As I say, think of what another GDB developer would need to know in >order to make the problem happen themselves. > >My first suggestion: have you tried a more recent version of GDB? 6.0 >is around two years old. _________________________________________________________________ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com