From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30878 invoked by alias); 27 Jul 2012 05:02:08 -0000 Received: (qmail 30859 invoked by uid 22791); 27 Jul 2012 05:02:06 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_SM X-Spam-Check-By: sourceware.org Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Jul 2012 05:01:53 +0000 Received: by pbbrp2 with SMTP id rp2so4842922pbb.0 for ; Thu, 26 Jul 2012 22:01:52 -0700 (PDT) Received: by 10.68.203.67 with SMTP id ko3mr10666255pbc.126.1343365312619; Thu, 26 Jul 2012 22:01:52 -0700 (PDT) Received: from [192.168.1.128] ([115.193.203.122]) by mx.google.com with ESMTPS id tj4sm1125185pbc.33.2012.07.26.22.01.49 (version=SSLv3 cipher=OTHER); Thu, 26 Jul 2012 22:01:51 -0700 (PDT) Message-ID: <501220C2.5010509@gmail.com> Date: Fri, 27 Jul 2012 05:02:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: [mingw,gdb CVS HEAD] can't set breakpoint References: <50121332.6010901@gmail.com> In-Reply-To: <50121332.6010901@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00079.txt.bz2 On 2012-7-27 12:04, asmwarrior wrote: > I just see this message: (when debugging under Code::Blocks) > > [debug]> break "E:/code/cb/test_code/Toggle/MyWXMain.cpp:66" > [debug]Function "66" not defined in "E:/code/cb/test_code/Toggle/MyWXMain.cpp". > [debug]Breakpoint 2 ("E:/code/cb/test_code/Toggle/MyWXMain.cpp:66") pending. > > Why this command is regard as "Function 66". > When the app started, it can't hit the bp. > > It works OK with gdb cvs 2012-07-25. > > Yuanhui Zhang > > I believe this issue is caused by the last two commits in file "linespec.c". Revision: 5134bbd001531c5c6d02573d4d7fb86b17a549ec Author: Keith Seitz Date: 2012-7-27 0:22:44 Message: * linespec.c (linespec_lexer_lex_number): The input is also a valid number if the next character is a comma or colon. ---- Modified: gdb/ChangeLog Modified: gdb/linespec.c and Revision: 4643fc6023b9d9aad57359b5624756b880c085d1 Author: Hui Zhu Date: 2012-7-25 20:26:23 Message: 2012-07-25 Hui Zhu * linespec.c (linespec_lexer_lex_number): Update comments, change the return and add check to make sure the input is the decimal numbers. (linespec_lexer_lex_one): If linespec_lexer_lex_number return false, call linespec_lexer_lex_string. ---- Modified: gdb/ChangeLog Modified: gdb/linespec.c I revert these two changes, and the breakpoint command works OK.