From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20203 invoked by alias); 21 Jul 2010 13:57:08 -0000 Received: (qmail 20181 invoked by uid 22791); 21 Jul 2010 13:57:06 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Jul 2010 13:57:01 +0000 Received: by pwi8 with SMTP id 8so6291510pwi.0 for ; Wed, 21 Jul 2010 06:57:00 -0700 (PDT) Received: by 10.115.46.13 with SMTP id y13mr301377waj.154.1279720618574; Wed, 21 Jul 2010 06:56:58 -0700 (PDT) Received: from [172.16.156.243] ([60.12.143.20]) by mx.google.com with ESMTPS id 33sm85195482wad.18.2010.07.21.06.56.55 (version=SSLv3 cipher=RC4-MD5); Wed, 21 Jul 2010 06:56:57 -0700 (PDT) Message-ID: <4C46FCDD.2000704@gmail.com> Date: Wed, 21 Jul 2010 13:57:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: gdb@sourceware.org Subject: windows gdb.exe, setting breakpoints before debugging cause extremely slow loading 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: 2010-07/txt/msg00077.txt.bz2 Hi, all, I'm a windows gdb user, I have used both official MinGW gdb.exe and gdb.exe build myself. I found that when I set a breakpoint before loading or after loading has much different result. I use GDB.exe under Codeblocks, here is the debugger log when I try to debug something: ---------------------------------------------------------------------------- Situation works badly: I just set breakpoint before I start "run" the debugee >>>>>>cb_gdb: > break "E:/code/cb/cc_branch/src/plugins/codecompletion/parser/parserthread.cpp:471" No source file named E:/code/cb/cc_branch/src/plugins/codecompletion/parser/parserthread.cpp. Breakpoint 1 ("E:/code/cb/cc_branch/src/plugins/codecompletion/parser/parserthread.cpp:471) pending. >>>>>>cb_gdb: > run Now, it will take about 1 and a half minutes to start the debugee. ---------------------------------------------------------------------------- But If I do *not* set any breakpoint before running, then ,the loading stage is quite fast(about 10 second), after that I can still set breakpoint and all the breakpoint works fine. Not only me find the problem, see the message posted in Codeblocks forum by One of Codeblocks developers Pecan: http://forums.codeblocks.org/index.php/topic,12951.msg87332.html#msg87332 Does this a gdb bug? Thanks asmwarrior(ollydbg from codeblocks forum)