From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93218 invoked by alias); 12 Mar 2015 14:13:59 -0000 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 Received: (qmail 93165 invoked by uid 89); 12 Mar 2015 14:13:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,MISSING_HEADERS,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-HELO: icp-osb-irony-out7.external.iinet.net.au Received: from icp-osb-irony-out7.external.iinet.net.au (HELO icp-osb-irony-out7.external.iinet.net.au) (203.59.1.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Mar 2015 14:13:56 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArELAMaeAVV8qjGo/2dsb2JhbAANToQygwvGOwIogVYBAQEBAQGFBAgBAQEDASMVQAEFCwsNCwICBRYIAwICCQMCAQIBNBETAQUCAoVtgjavRXCbCQEBAQEBBQEBAQEBHYEhiXaEcQeCaA+BNgEEmx+FcYktg0WEJVuCQwEBBQ Received: from unknown (HELO [192.168.0.10]) ([124.170.49.168]) by icp-osb-irony-out7.iinet.net.au with ESMTP; 12 Mar 2015 22:13:51 +0800 Message-ID: <55019F20.6010706@netspace.net.au> Date: Thu, 12 Mar 2015 14:13:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0 MIME-Version: 1.0 CC: ddd@gnu.org, "gdb@sourceware.org" Subject: Re: DDD References: <55005028.107@netspace.net.au> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00023.txt.bz2 On 12/03/15 20:02, Shahbaz Youssefi wrote: > Do you have optimization enabled when you compile your code? No. I always compile with CFLAGS="-g -O0" > On Wed, Mar 11, 2015 at 3:24 PM, Russell Shaw > wrote: > > Hi, > When i set a breakpoint at "main", it appears half way between the first and > second line: > > int main(int argc, char *argv[]) > { > int ret = EXIT_SUCCESS; > <-- red dot > ... > > Is there any fix for that? > > I tried recompiling, so the source is not out of sync with the binary.